That's a number of 'ifs' there, though.
Matrix.org is still running, so no complaints there. You'll figure things out soon enough.
For context, a typical synapse actually only uses around 300MB of RAM. It only spikes up to 1-2GB when trying to resolve state on big rooms like Matrix HQ, and then python doesn’t relinquish the RAM.
We do cache responses in JSON to avoid serialisation overheads.
Without going and reading the doc(yet); does this relate to:?
https://jneem.github.io/merging/
It would seem that a simpler, deterministic merge algo would be possible to parallelize - but I'm not sure if it's easy to match matrix idea of merges with what's discussed in that post/paper?
It's not directly related to the Categorical Theory of Patches paper - the merge resolution here is much simpler than reasoning about VCS patches, although the approach of taking a formal mathematical approach is similar :)