Hacker News new | ask | show | jobs
by Vesuvium 2357 days ago
Non-native apps can be as performant as native ones. I imagine they checked alternatives to Electron and figured a native app would allow them to have better OS integration.
1 comments

> Non-native apps can be as performant as native ones

This may be true. However, Electron apps cannot be as performant as native apps can be, which seems to be what they are getting at.

I didn't say "may". I said they can because I took care to look at their benchmarks.

https://szibele.com/memory-footprint-of-gui-toolkits/chart.s...

Vscode does a pretty damn good job.
VSCode really stands out to me among Electron apps, which is why I would be really interested in a write up about what they are doing to get it so performant (I think Rust is a part of the answer). Of course you can write terribly performing code on all platforms, but certainly some make it easier and/or have their own performance requirements.
Part of it I think is the super text heavy use case. Unlike slack for isntance that'll have N 30MB gifs (probably multiple copies of each too) in memory at any given point.
And with all the resources of Microsoft behind it still can't compete with something like sublime on performance. I know it makes up for it in other areas like extensibility but I wouldn't describe VSCode as particularly performant.
Have you tried pasting a very long line or huge file into VSCode? I always have Sublime open for these cases where I need to look at a huge JSON file as VSCode just crashes or becomes unusable.
I use it with 1.5M line files pretty regularly.
And still doesn't come close.
It's pretty damn close if you compare it to native apps with the same feature set.
It has smoother scrolling than most native editors :-/
Smoother scrolling than most native editors like?