Author serhiy.storchaka
Recipients BTaskaya, Mark.Shannon, eric.snow, gregory.p.smith, gvanrossum, pablogsal, rhettinger, serhiy.storchaka, terry.reedy, tim.peters
Date 2021-04-06.08:01:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Interesting. What code did you use to collect statistics? I used patches in issue27255. Perhaps it is worth to add an optionally compiled code for collecting dynamic opcode statistics permanently.

We have around 125 opcodes, so 0.5% looks too small. But what is the range of that opcode? How many opcodes are more frequent? And what is the range of BINARY_ADD for comparison.

RETURN_CONST or RETURN_NONE was already discussed before. They can save few bytes in bytecode, but they are never used in tight loops and the time difference is dwarfed by the frame creation overhead in any case.

For frequently used pairs of opcodes we have the PREDICT() macros which reduces overhead.
Date User Action Args
2021-04-06 08:01:22serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, tim.peters, rhettinger, terry.reedy, gregory.p.smith, Mark.Shannon, eric.snow, pablogsal, BTaskaya
2021-04-06 08:01:22serhiy.storchakasetmessageid: <>
2021-04-06 08:01:22serhiy.storchakalinkissue43684 messages
2021-04-06 08:01:22serhiy.storchakacreate