diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-21 21:51:13 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-21 21:51:13 +0000 |
commit | b612926a04a7ef31029e27229dea2a9d1dbddb2c (patch) | |
tree | 6b5b7757eb2092e6b1e2a651633fede13c0d136e /bin/dodoc | |
parent | e708e87e1a5d4e1e2411241382020dbcf4753494 (diff) | |
download | portage-b612926a04a7ef31029e27229dea2a9d1dbddb2c.tar.gz portage-b612926a04a7ef31029e27229dea2a9d1dbddb2c.tar.bz2 portage-b612926a04a7ef31029e27229dea2a9d1dbddb2c.zip |
In config.setcpv(), use LazyItemsDict to implement lazy evaluation of
PORTAGE_IUSE. The PORTAGE_IUSE value is lazily evaluated since re.escape()
is slow and the value is only used when an ebuild phase needs to be executed
(it's used only to generate QA notices). Thanks to Marat Radchenko
<slonopotamusorama@gmail.com> for identifying this performance issue and
submitting the initial patch which used a memoization approach instead of
lazy evaluation.
svn path=/main/trunk/; revision=12673
Diffstat (limited to 'bin/dodoc')
0 files changed, 0 insertions, 0 deletions