[Python-ideas] Disable all peephole optimizations
Ned Batchelder
ned at nedbatchelder.com
Thu May 22 22:26:15 CEST 2014
On 5/22/14 2:57 PM, Eric Snow wrote:
> On Thu, May 22, 2014 at 12:49 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
>> Same here. More concretely:
> ...
>
> Having said that, revamping those options and our current optimization
> mechanism is a far cry from just adding -X nopeephole as Ned has
> implied. While the former may make sense on its own, those broader
> changes may languish as nice-to-haves. It may be better to go with
> the latter in the short-term while the broader changes swirl in the
> maelstrom of discussion indefinitely.
I get distracted (by work...) for the afternoon, and things take an
unexpected turn!
I definitely did not mean to throw open the floodgates to reconsider the
entire -O switch. I agree that the -O switch seems like too much UI for
too little change in results, and I think a different set of settings
and defaults makes more sense. But I do not suppose that we have much
appetite to take on that large a change.
For my purposes, an environment variable and no change or addition to
the switches would be fine.
--Ned
> -eric
>
More information about the Python-ideas
mailing list