Re: Version after Version



"Marc Rohloff" <marcrohloff_ng@xxxxxxxxxxx> wrote in message

>> Not if you need speed.
>> When written to take advantage of the 64-bit wide data path, applications
>> can become twice as fast.
>
> Not true.
> a) A 64 bit processor is not twice as fast as a 32 bit processor.

You should read my sentence again.
"
When written to take advantage of the 64-bit wide data path, applications
can become twice as fast."

of course, when doing operations 64-bits at a time instead of 32 bits at a
time, the algorithm and its execution becomes (more than) twice as fast.
This is elementary with 64 bit CPU's and if you do not understand it then I
recommend you do a little experiment. Write a file
compressor/decryptor/encoder/whatever. It works in-memory. First write it
using 32-bit arithmetic, then using optimized algorithm for 64-bit
arithmetic, making sure you load 64 bits at a time (using MMX, if you have
no true 64-bit CPU), operate on 64 bits at a time and store 64 bits at a
time.

That your favorite game doesn't run twice as fast on a 64-bit CPU, doesn't
mean they aren't twice as fast with 64-bit algorithms!
In fact, due to less bookkeeping, they are about three times faster in that
repect, but you loose that 33% again due to mamory bandwidth issues etc.


> b) Since pointers become wider data and code size will increase
> significantly requiring more RAM to perform the same task, more memory
> transfers and more processor cycles.

Nope, that is utter nonsense. Only try when running 32-bit code on a 64-bit
CPU.
64-bit code is much *smaller* than 32-bit code, because you need three times
less instructions to do the same thing, because you operate on 64-bit data
instead of 32-bit data. I have written a 64-bit antialias routine and not
only was it much faster on a 64-bit CPU, the code also was much smaller
because I worked on 3 RGB triplets in a single register.



.



Relevant Pages

  • Re: Is 64 bit computing faster than 32 bit?
    ... Intel's 386 processors came out they were almost twice as fast. ... 64 bit applications ARE faster - for applications that can effectively make ... probably slightly slower due to the increased code side of 64-bit apps. ... run faster under 64-bit windows than under 32-bit Windows, ...
    (microsoft.public.vc.language)
  • Samsung printing every page twice
    ... Printing from the applications and it prints every page twice. ... >>From bash typing .. ... $lpr -#1 file.ps and it prints each page once only. ...
    (alt.os.linux.suse)
  • Re: Version after Version
    ... > When written to take advantage of the 64-bit wide data path, applications ... > can become twice as fast." ...
    (alt.comp.lang.borland-delphi)
  • Re: Excell cut and paste
    ... I keep mine turned off unless I CTRL + c twice. ... Gord Dibben MS Excel MVP ... my applications this is a waste of space and reduces my vision. ...
    (microsoft.public.excel.misc)
  • Re: Avoid 7/8 black post sleeves from pinballlife.com
    ... but I find that they are too thick in a lot of ... applications. ... They are almost twice the circumferance of the black ...
    (rec.games.pinball)