summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-24 11:41:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-24 23:28:35 +0100
commitf5f6748b757b7480efcae4fe345615990f907f81 (patch)
tree1eb71c9fddc2021bbfc550b18e1962b277987f2f /bitbake/lib/bb/data.py
parent9901415ecd11df0da73fccd867c4f1ba39abc9ab (diff)
downloadpoky-f5f6748b757b7480efcae4fe345615990f907f81.tar.gz
bitbake: data_smart: Improve override history logging
Calling record() for each override alteration is slow. Since we now expand overrides dynamically we don't have to record the log data at each alteration, we can instead print it directly from the existing data stores at variable history print time using the exact same data stores. This massively improves performance of the data store when parsing with bitbake -e for example, it will improve memory overhead as well. The only downside is that VariableHistory has to poke into the datastore for some of its data but that seems an acceptable tradeoff rather than double caching. (Bitbake rev: 100b447a161ef20fa559e39516cd32fa78e38262) 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 a21de112e7..f6415a4674 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -202,7 +202,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
202 return False 202 return False
203 203
204 if all: 204 if all:
205 d.varhistory.emit(var, oval, val, o) 205 d.varhistory.emit(var, oval, val, o, d)
206 206
207 if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all: 207 if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all:
208 return False 208 return False