diff options
author | Bob Foerster <robert@erafx.com> | 2010-11-20 04:39:22 +0800 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-11-21 11:18:02 -0700 |
commit | 73b40f06444cb877a5960b2aa66abf7dacbd88f0 (patch) | |
tree | 8d64099dfdd2d8a40a4b95276232adef81dacba6 /bin/bitbake | |
parent | bc0e147762769659b025b650b6b8da01ecf2248c (diff) | |
download | bitbake-73b40f06444cb877a5960b2aa66abf7dacbd88f0.tar.gz |
Prefer xrange over range for small performance gain.
range() allocates an actual list when called. xrange() is just an iterator
and creates the next range item on demand. This provides a slight
performance increase.
In python 3, range will do what xrange does currently, but the upgrade will
be handled by the 2to3 tool.
Signed-off-by: Bob Foerster <robert@erafx.com>
Diffstat (limited to 'bin/bitbake')
0 files changed, 0 insertions, 0 deletions