Optimizations for CommitReferenceFilter
What does this MR do and why?
Contributes to #360578 (closed)
Problem
Commit detection in CommitReferenceFilter can lead to high CPU consumption.
There are following reasons for that:
- We create substrings from commit ids even if they have the same length
- We iterate over the hash list of commits to find the matching commit..
Solution
Optimize commit matching logic
Screenshots or screen recordings
High CPU consumption by shas_eql?
method
Before | After |
---|---|
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin