Open mdboom opened 7 months ago
IMHO options should be processed using the PyConfig interface, that way all configuration stays in a central place and it is easier for embedders to change this setting. Also: With the current code there's no way to enable this option when using python -E
.
Bug report
Bug description:
The optimizer currently calls
getenv
during every optimization attempt. This has a small, but statistically significant 0.5% impact on performance. Do we need to do this each time, or could we read it to a flag during initialization?CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs