summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-11-08 08:34:43 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-11-08 08:34:43 (GMT)
commit4962fc8fed9697bfbd2218fcd22668e4721495ef (patch)
tree6ee3e8eb3f419510f221ed89ea602619d032e859 /Python/ceval.c
parent25ee87cc50ab99a1342091b5067c074878c9b212 (diff)
downloadcpython-4962fc8fed9697bfbd2218fcd22668e4721495ef.zip
cpython-4962fc8fed9697bfbd2218fcd22668e4721495ef.tar.gz
cpython-4962fc8fed9697bfbd2218fcd22668e4721495ef.tar.bz2
Backing out the fast path for interned string compares again as requested.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 34b4cb9..b707734 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1778,21 +1778,6 @@ eval_frame(PyFrameObject *f)
x = res ? Py_True : Py_False;
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:
x = cmp_outcome(oparg, v, w);