[Python-Dev] Micro-optimizations by adding special-case bytecodes? (original) (raw)
Mark Shannon mark at hotpy.org
Wed May 24 17:11:50 EDT 2017
- Previous message (by thread): [Python-Dev] Micro-optimizations by adding special-case bytecodes?
- Next message (by thread): [Python-Dev] Micro-optimizations by adding special-case bytecodes?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 24/05/17 11:07, Ben Hoyt 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?
[snip]
Hi Ben,
What you are suggesting is an ad-hoc form of what is known as "static superinstructions". Take a look at http://www.complang.tuwien.ac.at/projects/interpreters.html
Cheers, Mark.
- Previous message (by thread): [Python-Dev] Micro-optimizations by adding special-case bytecodes?
- Next message (by thread): [Python-Dev] Micro-optimizations by adding special-case bytecodes?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]