Skip to content

Make history cache generation quicker #3169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ChristopheBordieu opened this issue Jun 29, 2020 · 2 comments
Open

Make history cache generation quicker #3169

ChristopheBordieu opened this issue Jun 29, 2020 · 2 comments

Comments

@ChristopheBordieu
Copy link

ChristopheBordieu commented Jun 29, 2020

Hi,

Generating history cache for some of our Git repositories takes very long time...
Using OpenGrok 1.3.16 / Openjdk 11.0.7 / Tomcat 9.0.36 on our docker image.

What are the various way OpenGrok could offer to speed up this runtime?

  • finetune hard resources (memory size, # of CPUs)? how?
  • run history cache in background while file indexinf is run?
  • ...

My branch containing that work was really trying to massively speed up history, since FreeBSD history takes f-o-r-e-v-e-r to manage by OpenGrok since OpenGrok's data model copies commit contents (dates + commit message) to every affected file separately — and FreeBSD commits and merges very often touch thousands of files. The branch is still a work-in-progress and idle for a year, but maybe I can extract the octopus handling from it, which would solve your issue too.

Originally posted by @idodeclare in #3166 (comment)

@vladak
Copy link
Member

vladak commented Jul 14, 2020

Do you mean initial history cache generation or incremental ?

@ChristopheBordieu
Copy link
Author

Initial history cache. When done, when reindexing, it is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants