It looks like git's blame has optimizations that libgit2's blame lacks:

https://github.com/libgit2/libgit2/issues/3027

Jake

On Tuesday, March 31, 2015 at 5:04:35 PM UTC-4, jstookey wrote:
>
> The delay is apparent using the rugged library with a standalone ruby 
> script on a local repository checkout.
>
> == test.rb ruby script ==
> require 'rugged'
> @repo = Rugged::Repository.new('/home/jake/tmp/vtk')
> @blame = Rugged::Blame.new(@repo, 'CMake/CTestCustom.cmake.in' )
> @repo.close
>
> == command takes 30 seconds to run ==
> user@mypc:~/projects/ruby# date; ruby test.rb; date
> Tue Mar 31 16:59:21 EDT 2015
> Tue Mar 31 16:59:51 EDT 2015
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/1bb50a36-6411-40ed-a0b6-14cd76fa722c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to