[Cython] Speed of cython.compile

Stéfan van der Walt stefan at sun.ac.za
Tue Sep 20 01:36:05 CEST 2011

Hi all,

I only recently found out that the mailing list had shifted, so I hope
my message reaches you this time!

On the current development version of Cython, the attached script
makes Cython go into an infinite loop, but let's hope that's just on
my machine.


---------- Forwarded message ----------
Date: 2011/8/21
Subject: Speed of cython.compile
To: cython-dev at codespeak.net

Hi all,

I am trying to illustrate Cython's pure mode for a tutorial, and made
up a quick fibonacci example (attached).  But when I run the timings,
I get:

Cython: 5.515417099
Python: 0.123511791229

When I compile the module by hand (.pyx -> .c -> .so) the timings are perfect:

Cython: 0.0394787788391
Python: 0.119538068771

Any idea what's going on?  I cleared ~/.cython just to be sure, but
that didn't help.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: s.py
Type: text/x-python
Size: 523 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110919/758bee9a/attachment.py>

More information about the cython-devel mailing list