In dblink.getcontents(), use a regular expression to detect
authorZac Medico <zmedico@gentoo.org>
Tue, 16 Oct 2007 20:38:03 +0000 (20:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 16 Oct 2007 20:38:03 +0000 (20:38 -0000)
commit8fa22d41766a0c6b8198e6d3642c6f969e46da9f
tree6179639c9efc081375f777a4323e43db13fe00b1
parent799357a99736027ad85c0978e29b55338c6c5102
In dblink.getcontents(), use a regular expression to detect
when path normalization is required. Also, only join with
${ROOT} when necessary. This allows unnecessary normpath
and join calls to be optimized away in the general case,
reducing the cpu time for `equery belongs <filename>` by
about 50%.
M    pym/portage/dbapi/vartree.py

svn path=/main/trunk/; revision=8151
pym/portage/dbapi/vartree.py