Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4962fc8f
Commit
4962fc8f
authored
Nov 08, 2001
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backing out the fast path for interned string compares again as requested.
parent
25ee87cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
Python/ceval.c
Python/ceval.c
+0
-15
No files found.
Python/ceval.c
View file @
4962fc8f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment