Re: sin(x) performance on x64 and win32

Tech-Archive recommends: Speed Up your PC by fixing your registry



Tim Roberts wrote:
"Phil Frisbie, Jr." <phil@xxxxxxxxxxxx> wrote:

satol wrote:

Real-world code that's highly dependent on the performance of
sin(x) is, no doubt, quite rare.

We live in the different worlds apparently. atan2 is 30% slower when
compiled to x64 with VS2005. I just started to play with x64 to see
the difference with win32.

You have real world applications that heavily use sin(x)? In most
applications trig functions amount to less that 2-5% of the actual
CPU usage, so even two times slower trig functions would increase
CPU usage by only 2-5%.

I think you are dramatically underestimating the size of the universe
of scientific computing. There's an awful lot of analytical code in
the world that relies heavily on trig functions.

Yes, an awful lot. Should it really change the fact that optimizing too
soon is a waste of time? Could it be that most of the scientific code
is written by essentially amateurs in programming and it relies heavily
on exactly that, premature optimization, and can be drastically improved
by optimizing the portions that do matter? I am not arguing the ability
of computer scientists inventing and perfecting algorithms to do their
jobs for creating the fastest and the slickest code fragments. I am
talking optimization of the entire application instead of worrying of
a few cpu ticks at the lowest level.

Also, while we're on the subject of estimating, do you have any data to
suggest that in any application (aside from the contrived example by
the OP), and I mean a real world application, the use of trigonometric
functions goes beyond 5%? How far beyond? What is the real difference
in performance of that application in 64 bits vs 32 bits? What is the
source of your information?

It's not the size of the universe that matters. It's what comprises it.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


.



Relevant Pages

  • Re: sin(x) performance on x64 and win32
    ... I just started to play with x64 to see the ... times slower trig functions would increase CPU usage by only 2-5%. ...
    (microsoft.public.vc.language)
  • Re: Build Times Doubled After Projects Upgraded from VS2003 to VS2005
    ... The new compiler is a bit slower than the previous version, but it does a better job of optimizing and it is more standards compliant. ... We just recently upgraded our VS2003 - SP1 solution/project files to ... Since the upgrade, our build times have gone from 15-18 minute builds to well over 40 minutes. ...
    (microsoft.public.vc.ide_general)
  • Re: sin(x) performance on x64 and win32
    ... I just started to play with x64 to see the ... In most applications trig functions amount to less that 2-5% of the actual CPU usage, so even two times slower trig functions would increase CPU usage by only 2-5%. ...
    (microsoft.public.vc.language)