From a5a16bee862f7e552a4a8dbd75ff10db7b9c1342 Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Fri, 17 May 2019 18:47:27 +0100 Subject: _yaml: Cythonize and internalize Node Node used to be a NamedTuple that we used to access by index for speed reasons. Moving to an extension class allows us to access attributes by name, making the code easier to read and less error prone. Moreover, we do gain speed and memory by doing this move. Also fix a few places where we would not have an entire `Node` object but were instead just returning a tuple, missing some entries. --- setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 90aa74d31..b848e2458 100755 --- a/setup.py +++ b/setup.py @@ -391,6 +391,7 @@ def register_cython_module(module_name, dependencies=None): BUILD_EXTENSIONS = [] +register_cython_module("buildstream._yaml") register_cython_module("buildstream._variables") ##################################################### -- cgit v1.2.1