Optimize dblink.isowner() to use fewer stat calls by
authorZac Medico <zmedico@gentoo.org>
Wed, 17 Oct 2007 00:02:29 +0000 (00:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 17 Oct 2007 00:02:29 +0000 (00:02 -0000)
commit20df5faa51753aae84791277cd0d07c6b44114bf
tree55f8943d5fe6f9fd2d5d2f91ed7fe405d6b9962e
parenta3bd5ae0fde41bbdc401a7c6fa238a37ad58ac8e
Optimize dblink.isowner() to use fewer stat calls by
only collecting stat results for parent directories.
This provides equivalent accuracy to the previous
approach but will perform much better when used to
scan all installed packages for owners in the event
of a file collision.

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