Commit c0c5209f authored by Stefan Behnel's avatar Stefan Behnel

make the fastest case 'likely()'

parent 529bfffb
...@@ -1349,7 +1349,7 @@ class DefNode(FuncDefNode): ...@@ -1349,7 +1349,7 @@ class DefNode(FuncDefNode):
if self.star_arg: if self.star_arg:
star_arg_cname = self.star_arg.entry.cname star_arg_cname = self.star_arg.entry.cname
code.putln("if (PyTuple_GET_SIZE(%s) <= %d) {" % ( code.putln("if (likely(PyTuple_GET_SIZE(%s) <= %d)) {" % (
Naming.args_cname, nargs)) Naming.args_cname, nargs))
code.put_incref(Naming.args_cname, py_object_type) code.put_incref(Naming.args_cname, py_object_type)
code.put("%s = %s; " % (star_arg_cname, Naming.empty_tuple)) code.put("%s = %s; " % (star_arg_cname, Naming.empty_tuple))
......
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