Hacker News new | ask | show | jobs
by BillinghamJ 4000 days ago
Atom's performance problems are not because of Node, they're because they render with HTML, loading your whole text documents into the DOM as hundreds of thousands of separate elements.

Using Node JS as the backend to a proper native rendering system would work fine, and in fact if the application was written to properly handle everything asynchronously, it may well be faster than an app written entirely in the native language of the system.

2 comments

> it may well be faster than an app written entirely in the native language of the system.

So nodejs is now faster than C/C++? I guess Javascript really can do everything.

No. I said it "may well be", because a naive implementation using a native language may block while doing IO and be less responsive, unable to do other things while waiting for external stuff to happen.

Perhaps I should have said "may well be more responsive than".

So, you don't actually know anything about whether native apps block on IO? (I doubt they do on any modern version of Windows, OS X, Linux, Android, iOS or Windows Phone.)
Depends entirely on the developer. Most APIs support both non-blocking and blocking.
Honestly, I've never had a problem with Atom's performance.

The only time it comes up is when one opens an extremely long file which contains one extremely long line of code.

So "never" isn't actually true.