summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-15 12:16:54 +0100
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-15 12:16:54 +0100
commit7151171d21d1b9f7aa0b78593e4234ea76723034 (patch)
tree07fb14476dd924e7f1a712e4a810dcf82a04f9cf /setup.py
parentc5652e302757596d2779029f6ec5da820be4d11c (diff)
downloadbuildstream-bschubert/optimize-splits.tar.gz
element: Move __expand_splits to cythonbschubert/optimize-splits
__expand_splits is a somewhat intensive method, that represents >1% of the runtime. Moving it to cython makes it 5 times faster. This also requires exporting some 'Variables' symbols as public.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index c93cb44f3..daf10fff1 100755
--- a/setup.py
+++ b/setup.py
@@ -403,7 +403,7 @@ def register_cython_module(module_name, dependencies=None):
BUILD_EXTENSIONS = []
register_cython_module("buildstream.node")
-register_cython_module("buildstream._element")
+register_cython_module("buildstream._element", dependencies=["buildstream._variables"])
register_cython_module("buildstream._loader._loader")
register_cython_module("buildstream._loader.types", dependencies=["buildstream.node"])
register_cython_module("buildstream._yaml", dependencies=["buildstream.node"])