News for hackers. Stuff that matters.
Re:Some bad Git situations and how I got myself out of them by jlebar on Friday September 09, 2016 @09:29PM (#12467202)
As Jtsummers pointed out downthread, hg grep searches all revisions by default. No wonder it's so slow.

  $ time hg grep --rev tip CUDA > /dev/null
  real	0m0.075s
  user	0m0.055s
  sys	0m0.020s
Much better. Still much slower than git, which doesn't matter for this small repo but would definitely matter on a larger repo. But better. And hg lets you define aliases, so you don't have to remember to type "--rev tip".

There are no comments on this comment yet.