Le 22/07/2020 à 15:48, Inada Naoki a écrit :
On Wed, Jul 22, 2020 at 8:51 PM Antoine Pitrou firstname.lastname@example.org wrote:
I don't think all attempts are failed. Note that current CPython includes some optimization already.
The set of compile-time optimizations has almost not changed since at least 15 years ago.
Constant folding is rewritten and unused constants are removed from co_consts. That's one of what Victor did his project.
Constant folding is not a new optimization, so this does not contradict what I said. Also, constant folding is not precluded by Mark's proposal, AFAIK.