[pypy-dev] BUG! file.readlines
Amaury Forgeot d'Arc
amauryfa at gmail.com
Fri Nov 4 09:58:28 CET 2011
If there are people like me who can't read Chinese,
an automatic translation suggests that with any version of pypy (on
Windows),
readlines() is very slow and consumes a lot of CPU;
the sample file was 20M.
2011/11/4 ZZZ 654321 <zzz654321 at gmail.com>
> 经过测试, 我发现在 windows 下, pypy 的任意版本, 执行下面操作, 会占用很高的 CPU, 并且速度很慢, 测试样本为
> 20 M左右的文本文件. Cpython 下面测试很快
> 希望可以解决一下, 谢谢.
>
> >>> f01= file('aaa.txt', 'r' )
> >>> a01= f01.readlines(); #就是这里
> >>> f01.close()
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> http://mail.python.org/mailman/listinfo/pypy-dev
>
--
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20111104/7820222e/attachment.html>
More information about the pypy-dev
mailing list