Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4dfc8 commit d8dbf84Copy full SHA for d8dbf84
1 file changed
Python/ceval.c
@@ -1710,9 +1710,11 @@ eval_frame(PyFrameObject *f)
1710
case LOAD_GLOBAL:
1711
w = GETITEM(names, oparg);
1712
if (PyString_CheckExact(w)) {
1713
+ /* Inline the PyDict_GetItem() calls.
1714
+ WARNING: this is an extreme speed hack.
1715
+ Do not try this at home. */
1716
long hash = ((PyStringObject *)w)->ob_shash;
1717
if (hash != -1) {
- /* Inline the PyDict_GetItem() calls */
1718
PyDictObject *d;
1719
d = (PyDictObject *)(f->f_globals);
1720
x = d->ma_lookup(d, w, hash)->me_value;
0 commit comments