projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1a1da3
)
avoid a useless level of indirection for CyFunction.tp_call() in CPython
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Jul 2012 19:25:05 +0000
(21:25 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Jul 2012 19:25:05 +0000
(21:25 +0200)
Cython/Utility/CythonFunction.c
patch
|
blob
|
history
diff --git
a/Cython/Utility/CythonFunction.c
b/Cython/Utility/CythonFunction.c
index
4098194
..
6500081
100644
(file)
--- a/
Cython/Utility/CythonFunction.c
+++ b/
Cython/Utility/CythonFunction.c
@@
-501,6
+501,10
@@
static PyTypeObject __pyx_CyFunctionType_type = {
static int __Pyx_CyFunction_init(void) {
+#if !CYTHON_COMPILING_IN_PYPY
+ // avoid a useless level of call indirection
+ __pyx_CyFunctionType_type.tp_call = PyCFunction_Call;
+#endif
if (PyType_Ready(&__pyx_CyFunctionType_type) < 0)
return -1;
__pyx_CyFunctionType = &__pyx_CyFunctionType_type;