[Python-Dev] default of returning None hurts performance? (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Sep 1 00:29:48 CEST 2009
- Previous message: [Python-Dev] default of returning None hurts performance?
- Next message: [Python-Dev] default of returning None hurts performance?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gregory P. Smith <greg krypto.org> writes:
I was just wondering if a bytecode for a superinstruction of the common sequence: 6 POPTOP 7 LOADCONST 0 (None) 10 RETURNVALUE might be worth it.
I think superinstructions in general would be a good thing to experiment, as wpython showed. Direct addressing (via a pseudo register file combining locals and constants) would eliminate many bookkeeping-related opcodes in common bytecode.
Regards
Antoine.
- Previous message: [Python-Dev] default of returning None hurts performance?
- Next message: [Python-Dev] default of returning None hurts performance?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]