logoalt Hacker News

adrian17 • last Tuesday at 3:08 PM • 1 reply • view on HN

(Note that this optimization can also trigger for plain classes (that’s LOAD_ATTR_INSTANCE_VALUE), it just needs a bit more guards and is only useful if you don’t abuse instances being dynamic objects. I just used slots as the most obvious example, but there are lots of different op specializations since like 3.11)


Replies

kzrdude • yesterday at 7:26 AM

And we note that these specializations are part of production Python and will not be removed when the JIT is removed.

➕ show 1 reply