This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jneb
Recipients jneb
Date 2011-02-01.07:57:31
SpamBayes Score 6.3006445e-07
Marked as misclassified No
Message-id <1296547053.5.0.194611271072.issue11087@psf.upfronthosting.co.za>
In-reply-to
Content
I found a very simple way to improve the speed of CPython a few percent on the most common platforms (i.e. x86), at the cost of only a few lines of code in ceval.c
The only problem is that I don't have any experience in patch submission.

Here are the suggested new lines (also see submitted file):

#define NEXTARG() (next_instr +=2, *(unsigned short*)&next_instr[-2])
#define PEEKARG() (*(unsigned short*)&next_instr[1])

of course this code only works on little-endian processors that allow nonaligned shorts; a change to configure might be needed (*shiver*).

Hope you like it.
History
Date User Action Args
2011-02-01 07:57:33jnebsetrecipients: + jneb
2011-02-01 07:57:33jnebsetmessageid: <1296547053.5.0.194611271072.issue11087@psf.upfronthosting.co.za>
2011-02-01 07:57:31jneblinkissue11087 messages
2011-02-01 07:57:31jnebcreate