4 ms·
the matrix-js-sdk. I think the problem was that the crypto part is just loading a huge binary (WASM?) which instantly caused the extension to crash.
by mgrandl 3y ago
the matrix-js-sdk. I think the problem was that the crypto part is just loading a huge binary (WASM?) which instantly caused the extension to crash.
- Arathorn 3y agomm, right. crypto is indeed WASM - either libolm (which is only 150KB of WASM) or vodozemac (our new rust impl, which is 5.5MB of WASM unstripped). Neither use much heap though - probably only a few 100KB. The main heap management trick for matrix-js-sdk would be to turn on (experimental) sliding sync mode, which means that it only syncs the rooms it cares about - so O(1) with number of rooms, rather than O(N). However, i'm guessing you probably weren't testing with a large account?