This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients jcea, nadeem.vawda, serhiy.storchaka, victorhooi
Date 2012-09-26.14:10:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <201209261709.55571.storchaka@gmail.com>
In-reply-to <201209261306.31173.storchaka@gmail.com>
Content
Patch updated. Fixed one error. Now readline() optimized too.

Benchmark results (reading python.bz2):

Py2.7   Py3.2   Py3.3   Py3.3
                vanilla patched
4.8     4.8     -       31      read(1)
1       0.94    3.4e+02 3.6     read(10)
0.61    0.6     28      0.87    read(100)
0.58    0.58    3.4     0.61    read(1000)
0.59    0.57    0.88    0.58    read(10000)
0.57    0.56    0.62    0.58    read(100000)
0.57    0.57    0.59    0.58    read()
-       -       -       30      read1(1)
-       -       3.2e+02 3.6     read1(10)
-       -       27      0.88    read1(100)
-       -       3.3     0.61    read1(1000)
-       -       0.88    0.58    read1(10000)
-       -       0.61    0.57    read1(100000)
-       -       0.58    0.57    read1()
1.7     1.7     11      0.67    readline()
Files
File name Uploaded
bz2_faster_read.patch serhiy.storchaka, 2012-09-26.14:10:11
History
Date User Action Args
2012-09-26 14:10:13serhiy.storchakasetrecipients: + serhiy.storchaka, jcea, nadeem.vawda, victorhooi
2012-09-26 14:10:12serhiy.storchakalinkissue16034 messages
2012-09-26 14:10:12serhiy.storchakacreate