[Python-checkins] CVS: python/dist/src/Python ceval.c,2.288,2.289
M.-A. Lemburg
lemburg@users.sourceforge.net
Thu, 08 Nov 2001 00:34:46 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv17428
Modified Files:
ceval.c
Log Message:
Backing out the fast path for interned string compares again as requested.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.288
retrieving revision 2.289
diff -C2 -d -r2.288 -r2.289
*** ceval.c 2001/11/07 14:54:49 2.288
--- ceval.c 2001/11/08 08:34:43 2.289
***************
*** 1779,1797 ****
Py_INCREF(x);
}
- else if (v == w && PyString_CheckExact(v)) {
- /* Fast-path for comparing interned strings */
- switch (oparg) {
- case EQ: x = Py_True; break;
- case LE: x = Py_True; break;
- case GE: x = Py_True; break;
- case NE: x = Py_False; break;
- case GT: x = Py_False; break;
- case LT: x = Py_False; break;
- case IS: x = Py_True; break;
- case IS_NOT: x = Py_False; break;
- default: goto slow_compare;
- }
- Py_INCREF(x);
- }
else {
slow_compare:
--- 1779,1782 ----