News for hackers. Stuff that matters.
Re:Is WebAssembly magic performance pixie dust? (2021) by saagarjha on Thursday July 14, 2022 @11:38PM (#32104355)
> Browsers are often able to defer parsing of JS functions until they're called, so dead JS code doesn't cost much in parsing time.

You sure? Just figuring out what to call us going to typically require full parsing to find identifiers, scoping, etc.

Re:Is WebAssembly magic performance pixie dust? (2021) by Leszek on Friday July 15, 2022 @12:46AM (#32104703)
Browsers do a fast partial parse to figure out things like scoping and variable names, but skip actually building an AST so it's still a lot quicker than full parsing (e.g. https://v8.dev/blog/preparser)