git-annex/RemoteDaemon
Joey Hess e72ec8b9b2
add back git-annex branch read cache
The cache was removed way back in 2012,
commit 3417c55189

Then I forgot I had removed it! I remember clearly multiple times when I
thought, "this reads the same data twice, but the cache will avoid that
being very expensive".

The reason it was removed was it messed up the assistant noticing when
other processes made changes. That same kind of problem has recently
been addressed when adding the optimisation to avoid reading the journal
unnecessarily.

Indeed, enableInteractiveJournalAccess is run in just the
right places, so can just piggyback on it to know when it's not safe
to use the cache.
2020-07-06 12:22:33 -04:00
..
Transport convert to withCreateProcess for async exception safety 2020-06-03 15:48:09 -04:00
Common.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Core.hs add back git-annex branch read cache 2020-07-06 12:22:33 -04:00
Transport.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Types.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00