But we've taken another approach for the Electron app not to become as slow as Slack or Notion. We know many people complain about that.
To give just one example. The parser in our console has not been written manually in Javascript. Instead we wrote it in Ocaml (https://ocaml.org/) and we generate the Javascript. This allows us to have a code that is more reliable, maintainable and faster.
We do the same for many other parts of the product exactly for that same reason.