Message280574
| Author |
rhettinger |
| Recipients |
rhettinger, serhiy.storchaka |
| Date |
2016年11月11日.12:10:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1478866241.77.0.0742898329944.issue28665@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|