Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Boxiang Sun
Pyston
Commits
72a28355
Commit
72a28355
authored
9 years ago
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
microoptimizations: call getitemInternal and callFunc<S, NOT_REWRITABLE>
parent
d1baf5a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/runtime/dict.cpp
src/runtime/dict.cpp
+1
-1
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+1
-1
No files found.
src/runtime/dict.cpp
View file @
72a28355
...
...
@@ -633,7 +633,7 @@ void dictMerge(BoxedDict* self, Box* other) {
assert
(
keys
);
for
(
Box
*
k
:
keys
->
pyElements
())
{
self
->
d
[
k
]
=
getitem
(
other
,
k
);
self
->
d
[
k
]
=
getitem
Internal
<
CXX
>
(
other
,
k
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/runtime/objmodel.cpp
View file @
72a28355
...
...
@@ -3267,7 +3267,7 @@ static Box* _callFuncHelper(BoxedFunctionBase* func, ArgPassSpec argspec, Box* a
void
**
extra_args
)
{
Box
**
args
=
(
Box
**
)
extra_args
[
0
];
auto
keyword_names
=
(
const
std
::
vector
<
BoxedString
*>*
)
extra_args
[
1
];
return
callFunc
<
S
>
(
func
,
NULL
,
argspec
,
arg1
,
arg2
,
arg3
,
args
,
keyword_names
);
return
callFunc
<
S
,
NOT_REWRITABLE
>
(
func
,
NULL
,
argspec
,
arg1
,
arg2
,
arg3
,
args
,
keyword_names
);
}
typedef
std
::
function
<
Box
*
(
int
,
int
,
RewriterVar
*&
)
>
GetDefaultFunc
;
...
...
This diff is collapsed.
Click to expand it.
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