[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: file seek is slow

Stefan Behnel

3/12/2010 8:15:00 AM

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.goog... ) 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