sped up sim step by about 200%
authorJoey Hess <joeyh@joeyh.name>
Mon, 23 Sep 2024 19:27:45 +0000 (15:27 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 23 Sep 2024 19:45:47 +0000 (15:45 -0400)
commit969e6c2747a40e0889f79bf9e2adaa776890eced
treea775c6177c185c565de25b18bd5d19918303c95c
parent6df101f8b408c7649a326106fc703b868bfefd21
sped up sim step by about 200%

Noticed that it was quite slow compared with things like action
sendwanted. Guessed that the slowdown is largely due to every step
doing a simulated git pull/push.

So, rather than always doing a pull/push, only do those when no actions
are found without doing a pull/push.

This does mean that step will sometimes experience a split brain
situation, but that seems like a good thing? Because step ought to
explore as many possible scenarios as it reasonably can.
Annex/Sim.hs
doc/git-annex-sim.mdwn
doc/todo/git-annex_proxies.mdwn
doc/todo/proving_preferred_content_behavior.mdwn