summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-07-31 22:40:15 +0200
committerStefan Behnel <stefan_ml@behnel.de>2017-07-31 23:18:33 +0200
commitcbec2d11b267a9390feedb80b8379ab1feab5d90 (patch)
tree97070ec3d465812715f83bedad17504eb3f15bdb /Cython/Compiler/ModuleNode.py
parentb797b42771b179744d7652794e9c197a720bb4e4 (diff)
downloadcython-cbec2d11b267a9390feedb80b8379ab1feab5d90.tar.gz
speed up type checks, especially for exceptions (which are used a lot in yield/await)
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 36ade3662..3dab35072 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -717,6 +717,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln('static const char * %s= %s;' % (Naming.cfilenm_cname, Naming.file_c_macro))
code.putln('static const char *%s;' % Naming.filename_cname)
+ env.use_utility_code(UtilityCode.load_cached("FastTypeChecks", "ModuleSetupCode.c"))
if has_np_pythran(env):
env.use_utility_code(UtilityCode.load_cached("PythranConversion", "CppSupport.cpp"))