On 9/27/2021 5:51 PM, Eric Snow wrote:
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)

Just to air my concerns regarding option 2 (which I've already spoken to Eric about): I feel this option is completely orthogonal to whether PGO is used or not, and ought to be discoverable independently.

Essentially, it should be its own configure-time option, and should be included somewhere in sysconfig.get_config_var(...).

If we went with #2, there's no reliable way to detect whether profile-guided optimisations were used on all CPython builds, which means there'd be no reliable way to detect whether frozen modules are going to be enabled by default or not. Adding a separate option handles this case.

(My overall preference is for #3, FWIW)

Cheers,
Steve
_______________________________________________
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/CDG4LSUXRLKCDPJ4RMVXCAPDJ4PNTN4D/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to