diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-06 15:13:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-07 11:26:59 +0100 |
commit | 9a36531ed2b2881a65e5d39ee4b68d2bb392ed78 (patch) | |
tree | 516443b0aa7aaa114d23c7c11cf475ceb13bc44f /lib/bb/data.py | |
parent | 0b00f0382780ab5390a5c3f756a9b4efafe0aec8 (diff) | |
download | bitbake-9a36531ed2b2881a65e5d39ee4b68d2bb392ed78.tar.gz |
data: Micro performance optimisation tweak
The datastore can assume internal API, this just removes the function indirection
overhead involved in this very common codepath (800,000 calls in parsing OE-Core).
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r-- | lib/bb/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 134afaacc..80a7879cb 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -290,7 +290,7 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d): return deps, value varflags = d.getVarFlags(key, ["vardeps", "vardepvalue", "vardepsexclude", "exports", "postfuncs", "prefuncs", "lineno", "filename"]) or {} vardeps = varflags.get("vardeps") - value = d.getVar(key, False) + value = d.getVarFlag(key, "_content", False) def handle_contains(value, contains, d): newvalue = "" |