News for hackers. Stuff that matters.
Re:Mechanical Watch by selcuka on Wednesday May 04, 2022 @08:26PM (#31267778)
True, but it also removes the comments and the whitespace, leading to slightly better performance and memory usage. There are also less bytes to gzip on the server side.
Re:Mechanical Watch by Cthulhu_ on Thursday May 05, 2022 @04:20AM (#31270897)
Slightly, but is it enough to warrant the extra steps?

I don't think the difference is significant enough in this case.

That said, I do think there should be an alternative to minification+gzipping, like e.g. a compiled version of JS that is more optimized than a browser's own JIT compiler can do. Mind you, that might up being a larger package than the JS source code.

Re:Mechanical Watch by kaba0 on Thursday May 05, 2022 @05:44AM (#31271366)
Webassembly is* pretty much that

* hopefully will be