]> source.dussan.org Git - jgit.git/commit
Cache refreshed loose ref dirs in SnapshottingRefDirectory 41/205141/6
authorNasser Grainawi <quic_nasserg@quicinc.com>
Fri, 23 Feb 2024 17:34:37 +0000 (09:34 -0800)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 19 Mar 2024 21:42:02 +0000 (21:42 +0000)
commit81d64c9135b99ce85bbf7ebdce4f7ea5b7b77d35
treec940faf8844acdbfe314b8784b675c0ea140bf91
parent0acf07eb7a80f01ebfdb36bee9bfd566c8f9ce74
Cache refreshed loose ref dirs in SnapshottingRefDirectory

Update SnapshottingRefDirectory to have a cache of dirs refreshed for
loose refs. This should help improve performance when 'after_open'
setting is used for 'trustLooseRefStat' as duplicate refreshes are
avoided when a snapshot of the ref database is used in a request scope.

Change-Id: I8f66e7cee572e477d29abe2d9db69e97bca3ee4c
Signed-off-by: Nasser Grainawi <quic_nasserg@quicinc.com>
Co-authored-by: Martin Fick <quic_mfick@quicinc.com>
Co-authored-by: Kaushik Lingarkar <quic_kaushikl@quicinc.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/SnapshottingRefDirectory.java