4 ms·
> it uses ~100x less RAM than Element Wow – congrats!! What have been the most important architectural decisions to achieve this?
by rattray 6y ago
> it uses ~100x less RAM than Element
Wow – congrats!!
What have been the most important architectural decisions to achieve this?
- Arathorn 6y agoRather than storing state from the server in the JS heap, new state gets stored immediately in indexeddb transactionally and is pulled out strictly on demand. So, my account (which is admittedly large, with around 3000 rooms and 350K users visible) uses 1.4GB of JS heap on Element/Web, and 14MB on Hydrogen. It's also lightning fast, as you might expect given it's not having to wade around shuffling gigabytes of javascript heap around the place.
- __sisyphus__ 6y agoI've wanted to try something like this (on a smaller scale), but haven't had time. It's good to hear of an implementation that reflects my expectations. How long did it take you to migrate over?
- Arathorn 6y agoit’s a entirely new codebase; probably best way to visualise progress is to look at the contributor graphs at https://github.com/vector-im/hydrogen-web https://github.com/vector-im/hydrogen-web
- __sisyphus__ 6y agoCool, thanks for sharing!