[Pyrex] Should Pyrex be in standard Python?
Joachim Saul
saul at gfz-potsdam.de
Fri Jan 23 10:25:27 CET 2004
* Paul Prescod [2004-01-23 07:52]:
> bash-2.05a$ gcc cmodule.c
> bash-2.05a$ time ./a.out
> 100000000:1900000000
> real 2m15.950s
> user 2m6.420s
> sys 0m0.680s
Try "gcc -O3", which will speed-up your C program by a factor of
about 3 (in my test). Combined with "-funroll-loops" the factor
becomes 4. Which compiler flags did you actually use for compiling
your pyrexmodule.c? In fact, distutils does use the "-O3" flag...
Cheers,
Joachim
More information about the Pyrex
mailing list