automerge-repo icon indicating copy to clipboard operation
automerge-repo copied to clipboard

Lose extra diff

Open acurrieclark opened this issue 1 year ago • 10 comments

We are currently generating change patches by calling Automerge.diff after each change. For an average change, this diff takes ~35ms.

While this isn't a spectacularly long period of time, the rest of the change can sometimes only take a single digit ms amount of time. If we could somehow get the patches from the patchCallback, this would likely speed up the whole transaction.

We could also get the change source at the same time. Screenshot 2023-09-13 at 15 33 38

acurrieclark avatar Sep 13 '23 14:09 acurrieclark