[Python-ideas] Move optional data out of pyc files

Giampaolo Rodola' g.rodola at gmail.com
Thu Apr 12 20:38:23 EDT 2018


On Fri, 13 Apr 2018 at 03:47, M.-A. Lemburg <mal at egenix.com> wrote:

> I think moving data out of pyc files is going in a wrong direction:
> more stat calls means slower import and slower startup time.
>
> Trying to make pycs smaller also isn't really worth it (they
> compress quite well).
>
> Saving memory could be done by disabling reading objects lazily
> from the file - without removing anything from the pyc file.
> Whether the few 100kB RAM this saves is worth the effort depends
> on the application space.
>
> This leaves the proposal to restructure pyc files into a sectioned
> file and possibly indexed file to make access to (lazily) loaded
> parts faster.


+1. With this in place -O and -OO cmdline options would become even less
useful (which is good).

-- 
Giampaolo - http://grodola.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180413/5e76e8a5/attachment-0001.html>


More information about the Python-ideas mailing list