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.0002066366
Marked as misclassified No
Message-id <1221499467.48.0.115217431862.issue3873@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2008-09-15 17:24:27amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, hagen
2008-09-15 17:24:27amaury.forgeotdarcsetmessageid: <1221499467.48.0.115217431862.issue3873@psf.upfronthosting.co.za>
2008-09-15 17:24:06amaury.forgeotdarclinkissue3873 messages
2008-09-15 17:24:05amaury.forgeotdarccreate