On May 13, 2009, at 12:57 PM, Chris Colbert wrote: > so my intitial guess that the problem was with my inability to > properly build a dll was correct. > > After reading (partially) the gcc manual on compiling optimizations > i get the following result: > > Starting Threads > >>> no GIL cython: Value: 1999000.000000 Time: 8.076570 s > no GIL ctypes: Value: 1999000.000000 Time: 8.083144 s > > this was using the following compiler directives: > > >gcc -c -O3 -DBUILD_DLL ctypesgiltest.c > >gcc -shared -o ctypesgiltest.dll ctypesgiltest.o > > > so, the two ended up being roughly equal (for the time scale in > question) and I learned how to compile a dll.
That's a fairer comparison and more like what I would have expected. Moral of the story: don't compile (release build) without any optimizations if you care about speed. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
