[issue8745] zipimport is a bit slow

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for contribution. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue8745] zipimport is a bit slow

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 088a14031998 by Serhiy Storchaka in branch 'default': Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob. http://hg.python.org/cpython/rev/088a14031998 -- nosy: +python-dev ___ Pytho

[issue8745] zipimport is a bit slow

2013-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, Brian. Raymond is an initiator of issue17004. -- nosy: +rhettinger -brian.curtin ___ Python tracker ___

[issue8745] zipimport is a bit slow

2013-01-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8745] zipimport is a bit slow

2013-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general, the patch LGTM, however I can't try it on Windows, and on Linux it has no any performance effect. Can anyone try it on Windows? I have re-uploaded the patch for review after converting it from UTF-16 and CRLF. -- Added file: http://bugs.

[issue8745] zipimport is a bit slow

2013-01-06 Thread Catalin Iacob
Catalin Iacob added the comment: Attached v4 of patch with error checking for getc and some more comments. A real world example of the speedup is Calibre (http://calibre-ebook.com/) which on Windows comes with its own code, its dependecies and Python's stdlib all bundled in a 40MB zip. With th

[issue8745] zipimport is a bit slow

2013-01-02 Thread Catalin Iacob
Catalin Iacob added the comment: Yes Serhiy, I was planning to, lack of time followed by (just finished) vacation lead to a stall. Thanks for following up on this. I should soon, probably this weekend, have an updated version addressing your comments. -- _

[issue8745] zipimport is a bit slow

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Catalin, are you going to continue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8745] zipimport is a bit slow

2012-12-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8745] zipimport is a bit slow

2012-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > So this patch is a workaround for poor fseek performance in Microsoft's CRT, > it doesn't cause performance issues on Linux but saves quite some > milliseconds of startup time so I think it's worth the tradeoff. I think some clarifying comments will be goo

[issue8745] zipimport is a bit slow

2012-11-25 Thread Catalin Iacob
Changes by Catalin Iacob : Added file: http://bugs.python.org/file28117/zipimport-speedup-v3.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8745] zipimport is a bit slow

2012-11-25 Thread Catalin Iacob
Catalin Iacob added the comment: I tried Serhiy's suggestion in msg174934, see attached attempt-fseek-seek_cur.patch updated to current default. It makes no difference relative to the default branch for my test stdlib.zip, dummy reads still work better on Windows. This makes sense if you foll

[issue8745] zipimport is a bit slow

2012-11-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue8745] zipimport is a bit slow

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suggest to use fseek(fp, relative_offset, SEEK_CUR). It doesn't force a system call (at least on Linux) and may be a little faster than fread() or multiple getc(). -- nosy: +serhiy.storchaka ___ Python tracker

[issue8745] zipimport is a bit slow

2012-10-28 Thread Catalin Iacob
Changes by Catalin Iacob : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8745] zipimport is a bit slow

2012-06-04 Thread Catalin Iacob
Catalin Iacob added the comment: I updated Goplat's patch to the default branch. It now needs to read 4 dummy bytes instead of 6 since an extra PyMarshal_ReadShortFromFile was added to the default branch in the mean time. I added an explicit dummy buffer instead of reading the dummy bytes int

[issue8745] zipimport is a bit slow

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8745] zipimport is a bit slow

2010-05-20 Thread Goplat
Goplat added the comment: Zipping up the Lib directory from the python source (1735 files) as a test, it took on average 0.10 sec to read the zip before, 0.04 sec after. (To test the time taken by zipimport isolated from other startup costs, instead of actually getting the zip in the import p

[issue8745] zipimport is a bit slow

2010-05-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> brett.cannon nosy: +brett.cannon stage: -> patch review versions: +Python 3.2 -Python 2.6 ___ Python tracker ___

[issue8745] zipimport is a bit slow

2010-05-18 Thread Ray.Allen
Ray.Allen added the comment: When I perform some test on debian-5.0, I see the timing results almost the same before and after apply your patch(I modified the patch to against the trunk). Could you give some test result on windows? I can't see the speedups on debian-5.0. -- nosy: +

[issue8745] zipimport is a bit slow

2010-05-17 Thread Goplat
New submission from Goplat : Reading the list of files in a .zip takes a while because several seeks are done for each entry, which (on Windows at least) flushes stdio's buffer and forces a system call on the next read. For large .zips the effect on startup speed is noticeable, being perhaps 5