This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code much slower. Why?
- To: ronis at onsager dot chem dot mcgill dot ca, gcc at gcc dot gnu dot org
- Subject: Re: Code much slower. Why?
- From: N8TM at aol dot com
- Date: Wed, 29 Sep 1999 21:12:10 EDT
Sorry, I missed the "download for continuation" sign. You appear to be doing
several things which might be suspect, but ought to be just as evident in the
source code. You appear to have conversions from double to integer, which
are quite slow, but maybe didn't change between libraries, and you appear to
be looping until some condition on the result of exp() is satisfied.
Assuming you are running glibc-2 in default wide precision mode, if you are
doing some sort of iteration, you may be doing many more than you intended,
to get an extra 4 decimal places of convergence. But all that would be
simpler with source.
Tim