bitbake: data: Be explicit in data_db check
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Sep 2013 07:13:38 +0000 (07:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Sep 2013 13:11:03 +0000 (14:11 +0100)
commit3a282c83d526cb3e41270fbdd6cbd671acdd5dfd
tree56f8ca792c06462e6af48579f965a654eb6a428a
parent087d674babf5ea37ffc7a0a72d7437496f3aeecb
bitbake: data: Be explicit in data_db check

The if statement current causes the size of parent to be calcuated which
is like a len() operation on a datastore. Since we're only interested
whether the value is none, checking explictly for this gives a
small performance gain.

(Bitbake rev: 43a245bde318545ea75ca4ce7894395c1cf9b32a)

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