A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-May/148000.html below:

[Python-Dev] Micro-optimizations by adding special-case bytecodes?

[Python-Dev] Micro-optimizations by adding special-case bytecodes? [Python-Dev] Micro-optimizations by adding special-case bytecodes?Xavier Morel python-dev at masklinn.net
Wed May 24 14:29:11 EDT 2017
> On 2017-05-24, at 20:26 , Xavier Morel <python-dev at masklinn.net> wrote:
> 
>> On 2017-05-24, at 20:07 , Ben Hoyt <benhoyt at gmail.com> wrote:
>> 
>> Hi folks,
>> 
>> I was looking at some `dis` output today, and I was wondering if anyone has investigated optimizing Python (slightly) by adding special-case bytecodes for common expressions or statements involving constants?
> 
> Python 3.6 added an opcode specifically for dicts with constant keys:
> https://bugs.python.org/issue27140. Though I guess that's a slightly
> different case as it's not a peephole-fused opcode.

And followup, Python 2.7 did add fused opcodes related to conditional: 
http://bugs.python.org/issue4715.
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