[oe-commits] [bitbake] 02/02: data: Micro performance optimisation tweak

git at git.openembedded.org git at git.openembedded.org
Fri Jul 7 10:33:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 9a36531ed2b2881a65e5d39ee4b68d2bb392ed78
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Jul 6 15:13:03 2017 +0100

    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 at linuxfoundation.org>
---
 lib/bb/data.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/data.py b/lib/bb/data.py
index 134afaa..80a7879 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 = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list