diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-16 20:38:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-16 20:38:03 +0000 |
commit | 8fa22d41766a0c6b8198e6d3642c6f969e46da9f (patch) | |
tree | 6179639c9efc081375f777a4323e43db13fe00b1 /pym/portage_localization.py | |
parent | 799357a99736027ad85c0978e29b55338c6c5102 (diff) | |
download | portage-8fa22d41766a0c6b8198e6d3642c6f969e46da9f.tar.gz portage-8fa22d41766a0c6b8198e6d3642c6f969e46da9f.tar.bz2 portage-8fa22d41766a0c6b8198e6d3642c6f969e46da9f.zip |
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
Diffstat (limited to 'pym/portage_localization.py')
0 files changed, 0 insertions, 0 deletions