[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6632/8267] bitbake: data: Micro performance optimisation tweak
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 6632/8267] bitbake: data: Micro performance optimisation tweak
- Date: Sun, 17 Dec 2017 05:07:03 +0000 (UTC)
commit fe40092afb6d27019e6f971a4e33053b080f7c54
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Thu Jul 6 15:13:03 2017 +0100
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>
bitbake/lib/bb/data.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 134afaa..80a7879 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):
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 = ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]