Message280574
The STORE_FAST, LOAD_FAST, and LOAD_DEREF opcodes all use fast macros for variable access. This patch harmonizes STORE_DEREF to follow the same pattern.
Both the C code and the generated assembly look nicer. Gives an approx 40% speed-up (using both Clang and GCC-6) on the "store_nonlocal" portion of the variable access benchmark at http://code.activestate.com/recipes/577834
The eliminates the nonlocal speed penalty, making cell variable updates run nearly as fast as updates to locals. |
|
Date |
User |
Action |
Args |
2016-11-11 12:10:41 | rhettinger | set | recipients:
+ rhettinger, serhiy.storchaka |
2016-11-11 12:10:41 | rhettinger | set | messageid: <1478866241.77.0.0742898329944.issue28665@psf.upfronthosting.co.za> |
2016-11-11 12:10:41 | rhettinger | link | issue28665 messages |
2016-11-11 12:10:41 | rhettinger | create | |
|