Make commit
cache in git
plugin configurable
#726
Labels
product: plugin
Relates to one or more hipcheck-maintained plugins
type: enhancement
New feature or request
Right now, the
plugins/git
plugin has an internalMutex<(.., Vec<RawCommit>)
that acts as a cache ofRawCommit
s for the last-queried repo. This is helpful for performance, since we usually will run multiple analyses that run on a single repo and if we can skip re-calcing theRawCommit
s, it's much faster.However, right now it's hard-coded to only work for 1 repo. Update the cache size to be configurable through the
get_config()
gRPC call, and make it default tocommit_cache_size = 1
.This will require a version bump to the git plugin.
The text was updated successfully, but these errors were encountered: