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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, hagen, pitrou
Date 2008-09-15.17:24:05
SpamBayes Score 0.000206637
Marked as misclassified No
Message-id <>
Indeed. If I replace the file with 
    f = io.BytesIO(open("tst", "rb").read())
timings are divided by 20...

After quick profiling, it seems that PyLong_New would benefit from a
free list. len(bytearray) is called very often.
To stay simple, it would be enough to only store longs of length 1 (<2**15).
Date User Action Args
2008-09-15 17:24:27amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, hagen
2008-09-15 17:24:27amaury.forgeotdarcsetmessageid: <>
2008-09-15 17:24:06amaury.forgeotdarclinkissue3873 messages
2008-09-15 17:24:05amaury.forgeotdarccreate