Message73273
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:27 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, hagen |
| 2008-09-15 17:24:27 | amaury.forgeotdarc | set | messageid: <[email protected]> |
| 2008-09-15 17:24:06 | amaury.forgeotdarc | link | issue3873 messages |
| 2008-09-15 17:24:05 | amaury.forgeotdarc | create | |
|