Message127686
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. |
|
Date |
User |
Action |
Args |
2011-02-01 07:57:33 | jneb | set | recipients:
+ jneb |
2011-02-01 07:57:33 | jneb | set | messageid: <1296547053.5.0.194611271072.issue11087@psf.upfronthosting.co.za> |
2011-02-01 07:57:31 | jneb | link | issue11087 messages |
2011-02-01 07:57:31 | jneb | create | |
|