Author Demur Rumed
Recipients Demur Rumed
Date 2016-03-26.23:27:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Originally started @

This patch is based off of

It omits importlib.h & importlib_external.h as those are generated

It omits

I got around to benchmarking against building on master rather than using my repo's packaged version, it's currently a 1% speed improvement (every bit counts). I'm testing on an Intel Atom 330 with Linux.  Besides the minor perf increase, it generates smaller bytecode & is simpler (peephole now handles EXTENDED_ARG since it isn't too hard to track & while loops become for loops in dis)

Previous discussion:

pdb works without changes. doesn't seem to rely on anything this changes

I modified byteplay to target this change mostly over the course of half an hour before work:

I'd be interested to hear if this encoding simplifies things for FAT python & the recent work to cache attribute/global lookup

Remaining code issues: peepholer could allocate half the space as it does now for basic block tracking, compile.c & peephole.c repeat themselves on computing instruction size given an argument & how to spit out an instruction given an argument

Breaking change in dis: I've removed HAVE_ARGUMENT. This is to help code fail fast. It could be replaced with IGNORES_ARGUMENT or, as abarnert suggested, a range(90,256) named after the other hasXXXs 'hasarg'
Date User Action Args
2016-03-26 23:27:54Demur Rumedsetrecipients: + Demur Rumed
2016-03-26 23:27:48Demur Rumedsetmessageid: <>
2016-03-26 23:27:48Demur Rumedlinkissue26647 messages
2016-03-26 23:27:47Demur Rumedcreate