Say i have a 256 byte file. How many additions or multiplications can a modern computer perform on them using c++ ?
I've been working on this c++ compression project that does a lot of calculations. I use Dev-cpp,and am a amateur programmer,i've not used pointers,vectors or anything fancy yet,anyway my comp takes about 10 secs to just reduce it by a few bytes. How much faster can i expect it to run if i use vectors and pointers ?
And finally When a computer has a spec of 2GHZ,and a cycle period of 2,does it mean it performs a billion instructions ? and what constitutes a instruction ? a file transfer,addition, how many of these operations can fit in 1 instruction ? Does assinging or incrementing a variable count a 1 instruction ?
Thanks a lot for your time and response.