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
d8dbf847
Commit
d8dbf847
authored
Aug 19, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a warning comment to the LOAD_GLOBAL inline code.
parent
3a4dfc87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Python/ceval.c
Python/ceval.c
+3
-1
No files found.
Python/ceval.c
View file @
d8dbf847
...
...
@@ -1710,9 +1710,11 @@ eval_frame(PyFrameObject *f)
case
LOAD_GLOBAL
:
w
=
GETITEM
(
names
,
oparg
);
if
(
PyString_CheckExact
(
w
))
{
/* Inline the PyDict_GetItem() calls.
WARNING: this is an extreme speed hack.
Do not try this at home. */
long
hash
=
((
PyStringObject
*
)
w
)
->
ob_shash
;
if
(
hash
!=
-
1
)
{
/* Inline the PyDict_GetItem() calls */
PyDictObject
*
d
;
d
=
(
PyDictObject
*
)(
f
->
f_globals
);
x
=
d
->
ma_lookup
(
d
,
w
,
hash
)
->
me_value
;
...
...
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