commit | 27e26ec4181db395deac30bac09bde1fe3e0fc2b | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Jan 12 13:47:57 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Jan 12 13:47:57 2008 +0000 |
tree | 8cb1f85b4a8d1cf85d033d0b95c6c0e2a41b0793 | |
parent | 57fe0f29028d819fdf28dbe0e1e4dd1aa7e727aa [diff] [blame] |
Patch #1700288: Method cache optimization, by Armin Rigo, ported to 2.6 by Kevin Jacobs.
diff --git a/Objects/object.c b/Objects/object.c index 788e732..dbe5658 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -1287,6 +1287,7 @@ goto done; } +#if 0 /* XXX this is not quite _PyType_Lookup anymore */ /* Inline _PyType_Lookup */ { Py_ssize_t i, n; @@ -1311,6 +1312,9 @@ break; } } +#else + descr = _PyType_Lookup(tp, name); +#endif Py_XINCREF(descr);