diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-06-05 21:09:53 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-06 15:53:43 +0000 |
commit | baec142e623f9e8a4efd93183ac2f7ef15d84b06 (patch) | |
tree | 1c20ed5671fd4b139cbc71afee441ee575d9ba00 | |
parent | 6a42630a4057e704ed00fe8d478c86f774c6fd3c (diff) | |
download | buildstream-baec142e623f9e8a4efd93183ac2f7ef15d84b06.tar.gz |
_loader/types: move to a cython package
Types is a simple module that accounts for a few percent of a basic
'show' operation. Having it cythonized allows us to get better
performance without too much wokr
-rw-r--r-- | .pylintrc | 1 | ||||
-rwxr-xr-x | setup.py | 1 | ||||
-rw-r--r-- | src/buildstream/_loader/types.pyx (renamed from src/buildstream/_loader/types.py) | 0 |
3 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,7 @@ # run arbitrary code extension-pkg-whitelist= buildstream._loader._loader, + buildstream._loader.types, buildstream._variables, buildstream._yaml @@ -399,6 +399,7 @@ def register_cython_module(module_name, dependencies=None): BUILD_EXTENSIONS = [] register_cython_module("buildstream._loader._loader") +register_cython_module("buildstream._loader.types") register_cython_module("buildstream._yaml") register_cython_module("buildstream._variables", dependencies=["buildstream._yaml"]) diff --git a/src/buildstream/_loader/types.py b/src/buildstream/_loader/types.pyx index a9aa3ab32..a9aa3ab32 100644 --- a/src/buildstream/_loader/types.py +++ b/src/buildstream/_loader/types.pyx |