]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
providers/runqueue/taskdata: Optimise logger.debug calls
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Mar 2014 00:55:45 +0000 (17:55 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Mar 2014 01:58:49 +0000 (18:58 -0700)
commitd2677f084fe1d8846db77d89ef5e6ffb18dc171a
tree1d53e5a6557792f05f2101abe505a8be3edb81fb
parent00c22434123739b0819b31d7b1d353901a3e12da
providers/runqueue/taskdata: Optimise logger.debug calls

A run of "bitbake bash -c unpack" when the task has already been
completed resulted in about 9000 calls to logger.debug(). With this
patch which comments out some noisy/less usefull logging and moves
other logging calls outside loops, this number is reduced to 1000
calls. This results in cleaner logs and gives a small but
measurable 0.15s speedup. The log size dropped from 900kb to 160kb.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/providers.py
lib/bb/runqueue.py
lib/bb/taskdata.py