4 ms·
First let me say I really dislike Rust. Personal preference. However, having worked with Node for almost 10 years now, with a number of bundlers, most in Javas
by junon 5y ago
First let me say I really dislike Rust. Personal preference.
However, having worked with Node for almost 10 years now, with a number of bundlers, most in Javascript but some in other languages, Javascript tools rarely win the performance race.
We switched our medium-sized app from Rollup (Javascript) to ESBuild (Rust). Our build times went from 5-15 minutes, to just under 1 second - with full feature parity.
I'm sure a lot of this boils down to algorithms and whatnot, sure. But I still would like to think it's in part the language choice, too.
- mastrsushi 5y agoBut how much do those type of performance benefits matter to JS tools like a linter? The only positive they’re getting out of a native compiler language is unnoticeable performance boosts.
- Shish2k 5y agoSpotting lint problems in real time as I type is way more useful than spotting them after I submit a pull request and wait 10 minutes for the CI system to kick in :)
- junon 5y ago> But how much do those type of performance benefits matter to JS tools like a linter? A lot, I don't see how this is really a question. > The only positive they’re getting out of a native compiler language is unnoticeable performance boosts. 5 minutes to 1 second of build time for the same features isn't what I'd call "unnoticeable".
- pdimitar 5y agoDid you just call going from 5 minutes waiting to 1 second near-instant finish "an unnoticeable performance boost"? lol if so. :D
- acdibble 5y agoProbably just a typo due to the topic of the thread, but esbuild is written in Go.
- junon 5y agoYes, got it mixed up in my head :)