A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-September/091516.html below:

[Python-Dev] default of returning None hurts performance?

[Python-Dev] default of returning None hurts performance? [Python-Dev] default of returning None hurts performance?Antoine Pitrou solipsis at pitrou.net
Tue Sep 1 00:29:48 CEST 2009
Gregory P. Smith <greg <at> krypto.org> writes:
> 
> I was just wondering if a bytecode for a superinstruction of the common 
sequence:
> 6 POP_TOP
> 7 LOAD_CONST               0 (None)
> 10 RETURN_VALUE
> 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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4