automerge-classic
automerge-classic copied to clipboard
performance
tested result:300 records/s on windows 10,intel Core i7 6650u,16GB RAM,microsoft surface pro 4.
i think it's too low.any improvement paln?
performance for one CPU core
the "automerge.js" function "change"'s code like this: const [newDoc, change] = Frontend.change(doc, message, callback); return newDoc; i suggest that the entire "[newDoc, change]" shold be return so that i have no need to handle change by another api and it's a way of performance improvements.
if i remove the "getting changes" but using the return changes,the perfromance is up to 500 records /s
Great to see some benchmarks! Thanks for taking the time to do them and post here. Performance is going to be pretty variable depending on the operations. Can you talk a bit more about your use-case and what kind of operations you expect to happen at a high rate?
I also thought that using getChanges instead of simply using the returned changes is unnecessary and makes performance worse. Or am I wrong and there could be instances where Automerge.getChanges would return something different than the change in "const [newDoc, change] = Frontend.change(doc, message, callback);"? (Of course in the case of just one made change)