[pypy-issue] [issue1579] Potential speedup reading large file into a dict
lesshaste
tracker at bugs.pypy.org
Fri Aug 9 20:50:11 CEST 2013
lesshaste <drraph at gmail.com> added the comment:
paste <(seq 20000000) <(seq 2 20000001) > largefile.txt
Then run the attached read.py. It takes about 40 seconds on my system and simply
makes one large dict.
However the attached C code takes less than 10 seconds (code taken from public
forums on the web.)
Is there potential to be competitive with the C code?
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1579>
________________________________________
More information about the pypy-issue
mailing list