bitbake: data: Use direct iteration, not keys()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Sep 2013 07:33:48 +0000 (07:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Sep 2013 13:11:04 +0000 (14:11 +0100)
commitc516a3ae370c580b408398c968d0fbddb44b2571
treec9a842bba9e241ccee9c78ee373be9808e9a8e06
parent9b234a22b27d04a89c6f23efce02bc843fa14315
bitbake: data: Use direct iteration, not keys()

Profiling shows the creation of keys() has overhead and we're better using
an iterator rather than the memory associated with the huge list of keys
when iterating the whoe datastore. We minimise the number of times
we do this to twice only per recipe.

(Bitbake rev: e63448d9ee331b0f45fb9a0197d0dbee49eb2fa0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/data.py