file seek is slow
Stefan Behnel
stefan_ml at behnel.de
Fri Mar 12 03:15:09 EST 2010
CHEN Guang, 12.03.2010 08:51:
> Metalone wrote:
>> I just tried the seek test with Cython.
>> Cython fseek() : 1.059 seconds. 30% slower than 'C'
>> Python f.seek : 1.458 secondds. 80% slower than 'C'.
>>
>> It is amazing to me that Cython generates a 'C' file that is 1478
>> lines.
>
> PythoidC ( http://pythoidc.googlecode.com ) generates the shortest 'C' file.
> PythoidC is the C language like the Python, by the Python and for the Python.
Except that it's not a language but rather a syntax converter, i.e. it
doesn't really add any features to the C language but rather restricts
Python syntax to C language features (plus a bit of header file
introspection, it seems, but C's preprocessor has a bit of that, too).
Stefan
More information about the Python-list
mailing list