j
k
j a
j l
经过测试, 我发现在 windows 下, pypy 的任意版本, 执行下面操作, 会占用很高的 CPU, 并且速度很慢, 测试样本为 20 M左右的文本文件. Cpython 下面测试很快 希望可以解决一下, 谢谢.
......f01= file('aaa.txt', 'r' ) a01= f01.readlines(); #就是这里 f01.close()
...f01= file('aaa.txt', 'r' ) a01= f01.readlines(); #就是这里 f01.close()
f01= file('aaa.txt', 'r' ) a01= f01.readlines(); #就是这里 f01.close()
Attachments:
Back to the thread
Back to the list