Message266209
Attached is a patch based off #26647 which converts ceval to read opcode/oparg by casting next_instr to an unsigned short. I don't believe we need to complicate the code with checking the pointer alignment of the instruction stream; some effort must be gone through to generate bytecode off alignment, & if the issue comes up it's because someone's using the C API on a CPU that doesn't support unaligned reads to generate their own custom bytecode. Anyways pybench went from 16.5 on wordcode to 16.0 for me
The change works through replacing NEXTOP/NEXTARG with a NEXTOPARG macro |
|
Date |
User |
Action |
Args |
2016-05-24 00:08:19 | Demur Rumed | set | recipients:
+ Demur Rumed |
2016-05-24 00:08:19 | Demur Rumed | set | messageid: <1464048499.12.0.811410474415.issue27097@psf.upfronthosting.co.za> |
2016-05-24 00:08:19 | Demur Rumed | link | issue27097 messages |
2016-05-24 00:08:18 | Demur Rumed | create | |
|