16 ms·
You don't have to keep that much state in memory at all, actually. I'm not sure why you think that you do. Most of the state resolution (eg. the auth chain) in
by joepie91_ 5y ago
You don't have to keep that much state in memory at all, actually. I'm not sure why you think that you do.
Most of the state resolution (eg. the auth chain) involves calculations of which you can cache the result without needing to care about the inputs beyond that - at least, unless you need to recalculate them once later if delayed events come in.
Ultimately, the performance problems that Synapse has are problems with Synapse's implementation choices (especially around the database schema), not with the protocol nor with the state resolution algorithm.
- TheCycoONE 5y agoPresence may be a protocol level issue. My server struggled pretty badly until I disabled it and I see that's generally the advice: https://github.com/matrix-org/synapse/issues/3971 https://github.com/matrix-org/synapse/issues/3971 That doesn't seem like a fundamental issue though.
- Arathorn 5y agoIt’s a synapse implementation problem, not a protocol issue. And it’s being fixed currently.