3 ms·
> Faster than local dev: Because it runs entirely within the browser, server responses have less latency than localhost. Next.js Live seems very impressive, bu
by nitsky 5y ago
> Faster than local dev: Because it runs entirely within the browser, server responses have less latency than localhost.
Next.js Live seems very impressive, but this marketing line is scaring me off. It’s hard to imagine that running your app in webassembly within the browser has a measurable reduction in latency vs running on localhost. If anything, I would expect it to be slightly higher because of the overhead of interpreting/compiling wasm, and the slight performance hit of wasm vs native code.
- aparsons 5y agoAlso my first thought. If these folk can share metrics to prove otherwise, I’ll be pleasantly surprised.
- sktrdie 5y agoIt’s because in normal localhost you have to spin up a server in another process that serves your JS. With this there’s no server serving your JS. It’s right there in the browser already. That’s what they mean.
- nitsky 5y agoI understand, but it is not obvious this provides a performance benefit which outweighs the potentials slowdowns I mentioned above. I am concerned about the trend of JavaScript tools advertising how they are “blazing fast” without any benchmarks or serious technical analysis.