Hacker News new | ask | show | jobs
by charcircuit 1256 days ago
>People routinely point out that npm/yarn scripts are shockingly slow to start

The claim that 157 ms and 126 ms is "shockingly slow" is quite an exaggeration.

2 comments

It's not an exaggeration when you inevitably end up chaining them. The overhead adds up very quickly and becomes noticeable.

Also they take even longer to start in CI/CD containers.

true, but the moment you add containers to your mix you're functionally admitting that you don't care about startup times. Or possibly, you've been forced to do it by some service provider who doesn't give you a better option...
I mean you're not wrong in general, it's just that if the tool is written in C/C++, Zig, Rust, Golang, OCaml, D, V, and a few others, it still start in maximum 20ms even in containers.
126 ms is already well above the threshold of latency you can expect to notice when typing at a keyboard. By comparison, it'd almost be a long enough time to start caring as a TTFB. It really is a shockingly long time.