Optimize dbapi._iter_match_use() so that it shares a single compiled regex
authorZac Medico <zmedico@gentoo.org>
Mon, 6 Jul 2009 21:56:27 +0000 (21:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 6 Jul 2009 21:56:27 +0000 (21:56 -0000)
commit317ec856890cfca41c4655dd638e5804ce50b95c
treee0b3f84fcb07ccff87da8c141c8e5f304ffd16c9
parent1d13ae1ea7d44d6ecfdd401be4c4d867b61ff632
Optimize dbapi._iter_match_use() so that it shares a single compiled regex
for all implicit iuse checks. This avoids lots of expensibe re.compile()
calls. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for the
initial patch.

svn path=/main/trunk/; revision=13801
pym/portage/dbapi/__init__.py
pym/portage/dbapi/porttree.py