On Thu, Dec 22, 2011 at 8:47 PM, Adam Spiers <vcs-h...@adamspiers.org> wrote:
> On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann
> <richih.mailingl...@gmail.com> wrote:
>> Did you try --not?
>
> Ahah!  I think this works:
>
>    git annex find --not --in=
>
> Thanks!

Unfortunately this is cripplingly slow:

$ time symlinks -r . | egrep '^dangling: .+/\.git/annex/objects/' |
awk '{print $2}' >/dev/null
symlinks -r .  0.15s user 0.37s system 97% cpu 0.536 total
egrep '^dangling: .+/\.git/annex/objects/'  0.01s user 0.00s system 1%
cpu 0.534 total
awk '{print $2}' > /dev/null  0.00s user 0.00s system 1% cpu 0.526 total

$ time git annex find --not --in= >/dev/null
git annex find --not --in= > /dev/null  6.73s user 1.76s system 21%
cpu 39.483 total

Ouch!  Joey, is there an optimization that can be made for the local case here?
_______________________________________________
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Reply via email to