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 Demur Rumed
Recipients Demur Rumed
Date 2016-05-24.00:08:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464048499.12.0.811410474415.issue27097@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-05-24 00:08:19Demur Rumedsetrecipients: + Demur Rumed
2016-05-24 00:08:19Demur Rumedsetmessageid: <1464048499.12.0.811410474415.issue27097@psf.upfronthosting.co.za>
2016-05-24 00:08:19Demur Rumedlinkissue27097 messages
2016-05-24 00:08:18Demur Rumedcreate