summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-06 15:13:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-08 13:29:54 +0100
commitfe40092afb6d27019e6f971a4e33053b080f7c54 (patch)
treea20d16627c56494fa4b7ffe69db375ae86018475 /bitbake/lib/bb/data.py
parentf85f1ef24e59c0c058f96f0dfa82e50969fd580b (diff)
downloadpoky-fe40092afb6d27019e6f971a4e33053b080f7c54.tar.gz
bitbake: 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). (Bitbake rev: 9a36531ed2b2881a65e5d39ee4b68d2bb392ed78) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 134afaacc9..80a7879cb6 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -290,7 +290,7 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d):
290 return deps, value 290 return deps, value
291 varflags = d.getVarFlags(key, ["vardeps", "vardepvalue", "vardepsexclude", "exports", "postfuncs", "prefuncs", "lineno", "filename"]) or {} 291 varflags = d.getVarFlags(key, ["vardeps", "vardepvalue", "vardepsexclude", "exports", "postfuncs", "prefuncs", "lineno", "filename"]) or {}
292 vardeps = varflags.get("vardeps") 292 vardeps = varflags.get("vardeps")
293 value = d.getVar(key, False) 293 value = d.getVarFlag(key, "_content", False)
294 294
295 def handle_contains(value, contains, d): 295 def handle_contains(value, contains, d):
296 newvalue = "" 296 newvalue = ""