|
|
|
|
|
by Tyriar
1867 days ago
|
|
This isn't entirely the fault of Electron though, but the convenient data types exposed in a web environment. Beyond the baseline memory of running Chromium, you could use various tricks to keep memory very low such as minimizing GC (eg. declare variable up front, not within loops), use array buffers extensively, shared array buffers to share memory with workers, etc. |
|
I have trouble believing modern JS engines wouldn’t optimize this to the same thing.