3 ms·
I share the frustration with everything moving to slow and bloaty electron apps. But wrt to electron apps and using web technology instead of native frameworks
by bwindels 6y ago
I share the frustration with everything moving to slow and bloaty electron apps.
But wrt to electron apps and using web technology instead of native frameworks, I think it depends a lot as well how well the web code is designed. I've been prototyping a Matrix chat app [1] in a very minimalist way:
- no framework or library used for UI, "state", ... to have complete control on how and when things are updated and rendered.
- use indexeddb optimally to keep as little things in memory as possible.
My 2 main conclusions from this are:
- Web technology can perform very well. The chat client uses only 3.5mb of Javascript VM memory on a 200 room account. It visually outperforms some native apps as an installed PWA on Android on a low-end device. I attribute this to the fact that web browsers are very optimized.
- It takes more time to engineer an app properly like this, even in a language like javascript. I can imagine it's hard to justify the expense, when most people don't know who to blame when their computer is slow.
1: https://github.com/bwindels/brawl-chat https://github.com/bwindels/brawl-chat