Windows 10 annual update will bring JavaScript performance improvements to Edge

  

Computer Store News: Microsoft today announced some improvements to the Edge browser Chakra JavaScript engine, which will come with the Windows 10 annual update next month. According to the company, the Chakra engine is designed to “create faster JavaScript in the real world of the Web and improve the experience of the Microsoft Edge browser”. One of the improvements mentioned today is the memory optimization feature. Microsoft said that there are a lot of small features in web scripts, which is quite common for developers who distinguish code reusability.


Microsoft solved this problem by refactoring the metadata format of each function. For example, pointers to features that are rarely used will be migrated to a dynamic auxiliary. structure.

According to Microsoft, most 32-bit counters rarely provide values ​​in excess of 256. For this reason, most values ​​can only use 1 byte. (1 byte = 8 bits, binary 11111111 is equivalent to 255 in decimal)


Second, Microsoft has postponed the processing of parsing events. When you go to a website, almost anything you do will trigger an event. For example, clicking a button, entering a text box, swiping a link, etc., will trigger an event in the Java code that tells the site what feedback to provide.

Normally, a browser can parse all of these event handlers when the page is loaded, but many of them will not be used at all, and the result is a waste of resources. In the Windows 10 annual update, the Edge browser will be able to parse only the part in use in real time.


The above picture shows the results of a test comparison on a 64-bit Windows 10 Insider Preview system and a 64-bit browser. The machine used is the Dell Optiplex 7010, quad-core @2.9GHz Intel Core i5-3475S CPU + 4GB RAM.

Interestingly, Microsoft tested new features on older hardware (Intel's third-generation Ivy Bridge CPU, the latest in the sixth generation of Skylake).

In January of this year, Microsoft opened up its Chakra Java engine, and interested users can move to the ChakraCore project introduction page on GitHub.

Copyright © Windows knowledge All Rights Reserved