WebAssembly, the portable binary format for improving web application performance, is being tweaked by Microsoft for its Edge browser.
"We've observed startup time as a major headache for large web apps and have rarely seen runtime performance being the issue from our experiences with existing WebAssembly and asm.js workloads," said Limin Zhu, program manager for the Chakra team at Microsoft, this week. "As a result, a WebAssembly app often loads noticeably faster in Microsoft Edge."
The Creators Update also features other improvements, including saving memory by re-deferring functions. The capability descended from Internet Explorer's defer-parse function and defer-parse event handlers. With re-deferring, for every function Chakra deems would no longer get executed, the engine frees the bulk of memory that function holds to store metadata after pre-parsing, leaving the function in a deferred state as if it has been pre-parsed. Creators Update also extends just-in-time optimization to avoid creating heap arguments with the presence of formals as long as there are no writes to formals. Microsoft's web crawler estimates this optimization benefits about 95 percent of web sites.