Optimize dblink.isowner() to use fewer stat calls by doing a basename
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Feb 2008 08:04:33 +0000 (08:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Feb 2008 08:04:33 +0000 (08:04 -0000)
commit2ab5757ff9d9771ffd5f57fcfcd73c79c73ea19c
tree5e21cbceaf6fef5416e4e4d296b975bebb375a27
parent49e5835bb591c28647762b7f362f9af0737b5fff
Optimize dblink.isowner() to use fewer stat calls by doing a basename
comparison to try and eliminate the file before resorting to inode
comparison. This speeds up the `portageq owners` command as well as
the search that is done when collision-protect finds a collision.

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