On Fri, 13 Apr 2018 at 03:47, M.-A. Lemburg <m...@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
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/