5 ms·
Incemening and decrementing is almost free, the cost is in allocating and releasing memory. If you allocate and release so many objects this starts to be an iss
by tinus_hn 6y ago
Incemening and decrementing is almost free, the cost is in allocating and releasing memory. If you allocate and release so many objects this starts to be an issue like here, with a GC the memory usage would be at the level of an Electron app.
- pjmlp 6y agoOnly for developers that lack the understanding that just because there is a GC that doesn't mean there aren't other means to manage memory, e.g. D, Nim, C#/F#/VB, Eiffel, Go. https://github.com/ixy-languages/ixy-languages https://github.com/ixy-languages/ixy-languages As for Electron, as React Native team has proven, Electron isn't the best example of JavaScript performance or memory usage, quite the opposite. I can hardly wait the day that they manage to convince the VSCode team to migrate to React Native.