[Python-Dev] this is what happens if you freeze all the modules required for startup

Tres Seaver tseaver at palladion.com
Fri Apr 18 00:18:27 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/17/2014 06:06 PM, Brett Cannon wrote:
> On Thu Apr 17 2014 at 5:21:14 PM, "Martin v. Löwis"
> <martin at v.loewis.de> wrote:
> 
>> Am 17.04.14 20:47, schrieb Brett Cannon:
>>> Because people keep bringing it up, below is the results of
>>> hacking up the interpreter to include a sys.path entry for
>>> ./python35.zip instead of hard-coding to /usr/lib/python35.zip and
>>> simply zipped up Lib/ recursively. TL;DR, zipimport performance no
>>> longer measures up (probably because of stat caching and such that
>>> importlib introduced).
>> 
>> [I found the answer on what is being compared in replies]
>> 
> 
> Yeah, I did it in under 5 minutes on a whim so I wasn't entirely
> thinking when I posted the numbers.
> 
> 
>> 
>> So how did you create the zip file?
> 
> 
> zip ../python35.zip -r .
> 
> 
>> Any chance that you may have compressed the pyc files?

I think you want 'zip -0' to avoid the compression.


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlNQUzMACgkQ+gerLs4ltQ53XACcCihQVdb9h4RSnOphhkzu8AjU
JsAAoJXClEcf4/McqA610Lh5SDdeHdhW
=6pNL
-----END PGP SIGNATURE-----



More information about the Python-Dev mailing list