[CLN-list] Overriding read_number_bad_syntax on OS X

Bruno Haible bruno at clisp.org
Mon May 14 01:32:46 CEST 2007


Richard B. Kreckel wrote:
> I am very curious about the overhead incurred by compiling CLN 
> without -fno-exceptions.

Here is some data. Compiled cln-1.1.13 on Linux/i386 once with
CXX="g++ -fno-exceptions" and once with CXX="g++" (both with GCC 4.1.2),
and performed two deterministic programs, measuring user time:

                            g++ -fno-exceptions     g++

./exam                         1.24 sec             1.35 sec
./pi 100000 > /dev/null        2.64 sec             2.64 sec

As was to be expected, the program which spends most of its time in large
bignum multiplications is not slowed down. But the program which constructs
many numbers and performs many (quick) computations is slowed down.

Is a slowdown of 9% significant?

Bruno



More information about the CLN-list mailing list