diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-09-16 07:40:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-17 14:11:04 +0100 |
commit | 0902850e979511b27a4c452b39b9557d57cbb039 (patch) | |
tree | 5a4763418e58b4a0805ec234cf55dc83fd554cea /scripts/gen-site-config | |
parent | 66c9c01b2b14a973d6b97755a343760710312be9 (diff) | |
download | poky-0902850e979511b27a4c452b39b9557d57cbb039.tar.gz |
bitbake: data_smart: Add explict None checks
Simple if xxx checks end up calling len(xxx). We're interested in the specific case
of None which means we can break out the iterator much earlier after the first
item. This adds in the specific tests for None in what is a hot path in the
data store code which gives small performance gains.
(Bitbake rev: a4d81e44a7cd3dafb0bf12f7cac5ff511db18e60)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/gen-site-config')
0 files changed, 0 insertions, 0 deletions