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 <zzz654...@gmail.com> > 经过测试, 我发现在 windows 下, pypy 的任意版本, 执行下面操作, 会占用很高的 CPU, 并且速度很慢, 测试样本为 > 20 M左右的文本文件. Cpython 下面测试很快 > 希望可以解决一下, 谢谢. > > >>> f01= file('aaa.txt', 'r' ) > >>> a01= f01.readlines(); #就是这里 > >>> f01.close() > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > http://mail.python.org/mailman/listinfo/pypy-dev > -- Amaury Forgeot d'Arc
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev