-
Notifications
You must be signed in to change notification settings - Fork 19
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
Speed up protected branch detection #222
Comments
git-branchless originally cached merge-bases on-disk Then switched to Eden. @arxanas is it all eden or is it also the hooks incrementally updating eden's database?
|
|
|
Yeah, Eden sounds nice; too bad its GPL. Thats weird for me to say as I used to be a fan but there are enough people / companies that restrict GPL that I don't want the work I do to be restricted and I'm unlikely to create the next major piece of software that will be abused for its license. This also means I'm participating in the viral nature of license biases. Thats a good point that incremental updates wouldn't be a big deal, even without hooks (I also want to avoid hooks). With a graph data structure, it seems like it'd be relatively easy to identify and trim all roots that aren't known (ie cache invalidation). Might be interesting to play with this at a later time if there is an alternative viable graph that supports serialization. @arxanas how does git-branchless do for initializing on Linux? I'm assuming thats much worse than gecko-dev. |
@epage here's the timing results:
That's a little bit longer than you would expect just based on commit numbers ( |
Please complete the following tasks
Description
In #216, we found that
git stack
can be slow calculating protected bases when some of them are far from each other or the topic branches.Version
v0.8.0
Steps to reproduce
Actual Behaviour
Takes 6s
Expected Behaviour
Should take <1s
Debug Output
No response
The text was updated successfully, but these errors were encountered: