Commit 72a28355 authored by Marius Wachtler's avatar Marius Wachtler

microoptimizations: call getitemInternal and callFunc<S, NOT_REWRITABLE>

parent d1baf5a4
...@@ -633,7 +633,7 @@ void dictMerge(BoxedDict* self, Box* other) { ...@@ -633,7 +633,7 @@ void dictMerge(BoxedDict* self, Box* other) {
assert(keys); assert(keys);
for (Box* k : keys->pyElements()) { for (Box* k : keys->pyElements()) {
self->d[k] = getitem(other, k); self->d[k] = getitemInternal<CXX>(other, k);
} }
} }
......
...@@ -3267,7 +3267,7 @@ static Box* _callFuncHelper(BoxedFunctionBase* func, ArgPassSpec argspec, Box* a ...@@ -3267,7 +3267,7 @@ static Box* _callFuncHelper(BoxedFunctionBase* func, ArgPassSpec argspec, Box* a
void** extra_args) { void** extra_args) {
Box** args = (Box**)extra_args[0]; Box** args = (Box**)extra_args[0];
auto keyword_names = (const std::vector<BoxedString*>*)extra_args[1]; 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; typedef std::function<Box*(int, int, RewriterVar*&)> GetDefaultFunc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment