On Mon, Sep 27, 2021 at 9:54 AM Eric Snow <ericsnowcurren...@gmail.com> wrote:
> We've frozen most of the stdlib modules imported during "python -c > pass" [1][2], to make startup a bit faster. Import of those modules > is controlled by "-X frozen_modules=[on|off]". Currently it defaults > to "off" but we'd like to default to "on". The blocker is the impact > on contributors. I expect many will make changes to a stdlib module > and then puzzle over why those changes aren't getting used. That's an > annoyance we can avoid, which is the point of this thread. > > Possible solutions: > > 1. always default to "on" (the annoyance for contributors isn't big > enough?) > 2. default to "on" if it's a PGO build (and "off" otherwise) > 3. default to "on" unless running from the source tree > > Thoughts? > What about opting out when `--with-pydebug` is used? I'm not sure how many people actively develop in a non-debug build other than testing something, but at that point I would be having to run `make` probably anyway for whatever I'm mucking with if it's *that* influenced by a debug build.
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/PYX65WVG5ICXEBIY5ZDLDFAJHDU56HLA/ Code of Conduct: http://python.org/psf/codeofconduct/