Message52435
I tried re-inlining the fast path from _PyType_Lookup() in object.c and found no measurable improvement on the simple benchmarks I tried. I've also stress-tested the patch by disabling the fast-path return, always performing the slow-path lookup, and asserting that the cached result matches the slow-path result. I then ran that modified interpreter on the Python test-suite, various benchmarks, and a range of my own applications. While not a formal proof of correctness, it was encouraging that the cache remained consistent. |
|
Date |
User |
Action |
Args |
2007-08-23 15:58:00 | admin | link | issue1700288 messages |
2007-08-23 15:58:00 | admin | create | |
|