Re: Annotating pure functions to improve inline caching/optimization

Philipp Burch <[email protected]> Sun, 18 Sep 2022 20:58:23 +0200
Newsgroups gmane.comp.python.devel
Message-ID <[email protected]>
On 15.09.22 00:05, Jeremiah Gabriel Pascual wrote:
> I've frequently explored the new adaptive, inline caching code generated by 3.11. "inline caching" does not mean result caching (like what C/C++ might do) here, but rather it should mean the caching of info used for the adaptive instructions. That means the bytecode stays the same except for the adaptive instructions and the changed `CACHE`s below each adaptive instruction, which should *always* be skipped due to the possibility of misinterpretation as other instructions.


Oh, thanks for the clarification. Looks like I've hoped for too much 
when reading about caching. Maybe sometimes in the future, who knows...

Regards,
Philipp