On Thu, Feb 28, 2013 at 6:20 AM, Allan McRae <allan@archlinux.org> wrote:
On 28/02/13 07:08, Andrew Gregory wrote:
I get a significant delay when removing a package that is the sole owner of a directory as the filelists for all installed packages are resolved to make sure none of them own the directory as well.
Bingo!
Lets kill that... And by that I mean the resolving part for the remove (if possible).
That check is to make sure that no package owns the empty directory before removing it. So if a package has files there due to a symlink, all will be fine (not empty). The case of having a symlink to a empty directory that needs kept can stay as a "bug" to avoid that massive slow-down.
I think this is why I was hesitant to add ownership checks in the remove path before. Does sound like there are some fairly common paths that can be optimized though to make this less painful. -Dan