Skip to content

GitLab Blame operation takes too much time compared to libgit2 blame via console

Hello,

I installed the newest version of gitlab via omnibus: 7.13.5

I was trying to use blame on a file via gitlab and recieved result in ~24 seconds.

But the same operation via gitlab console ( gitlab-rails console ) took: ~7 seconds. ( Benchmark.measure from #2053 (closed) )

Here is newrelic trace for blame operation:

newrelic_summary

And here is details report:

newrelic_details

As you can see most of the time is spent in "blame/show.html.haml Template"

Is it possible to reduce this time difference between console and GitLab gui?

Thank you.