[Python-Dev] LOAD_SELF and SELF_ATTR opcodes
"Martin v. Löwis"
martin at v.loewis.de
Sat Oct 15 00:33:24 CEST 2005
Phillip J. Eby wrote:
> Anyway, my main question is, do these sound like worthwhile
> optimizations?
In the past, I think the analysis was always "no". It adds
an opcode, so increases the size of the switch, causing
more pressure on the cache, with an overall questionable
effect.
As for measuring the effect of the change: how often
does that pattern occur in the standard library?
(compared to what total number of LOAD_ATTR)
Regards,
Martin
More information about the Python-Dev
mailing list