News for hackers. Stuff that matters.
Re:Automerge: A library of data structures for building coll... by Horusiath on Saturday July 20, 2024 @02:19PM (#41018482)
> (5-10x slower last I checked)

This was a thing around 2 years ago. Nowadays speeds is the same or in favor of Rust, depending on the benchmark in question.

Re:Automerge: A library of data structures for building coll... by josephg on Saturday July 20, 2024 @03:26PM (#41019019)
It was still much slower ~6 months ago when I benchmarked it. I’ll rerun my benchmarks and confirm one way or another.
Re:Automerge: A library of data structures for building coll... by josephg on Saturday July 20, 2024 @08:33PM (#41021444)
Oh amazing - it looks like the GP commenter is right. Yrs is significantly faster now than it was when I benchmarked it a few months ago. I'd update my comment above, but its too late.

For example, in one of my tests I'm seeing these times:

Yjs: 74ms

Yrs: 9.5ms

That's exceptionally fast.

This speedup seems to be consistent throughout my testing data. For comparison, automerge takes 1100ms to load the same editing history from disk, using its own file format. I'd really love to see automerge be competitive here.

(The test is loading / merging a saved text editing trace from a yjs file, recorded from a single user typing about 100 pages of text).