[Python-Dev] Zipping Zope3
Just van Rossum
just@letterror.com
Tue, 17 Dec 2002 23:18:20 +0100
Wiktor Sadowski wrote:
> >I can see that keeping the file object open could speed things up,
> >but is it a polite & decent thing to do?
>
> Yes, but it would be nice to not fopen/fclose for each
> __importer__.get_data.
It also does this for each import (I copied this behavior from the PEP
273 implementation). I experimented with keeping the open file object
around, and performance hardly went up.
Just
PS: your computer thinks it's monday.