English Links: Writing Fast, Memory-efficient JavaScript
Many JavaScript engines, such as Google's V8
Engines (used by chrome and node) are designed for large JavaScript applications that need to be executed quickly. If you are a developer and care about memory usage and page performance, you should understand how the JavaScript engine works in the user's browser. Whether it's V8,spidermonkey (Firefox) Carakan (Opera), Chakra (IE) or other engines, doing this can help you better optimize your application . This is not to say that you should specifically optimize for a particular browser or engine, and don't do that.
However, you should ask yourself a few questions:
- Is it possible to make the code more efficient in my code?
- What optimizations are being made by the mainstream JavaScript engine
- What is an engine that cannot be optimized, and does the garbage collector (GC) Reclaim what I expect?
Read the full text
More Java,java study, Java face test? Http://techfoxbbs.com
"Writing high-performance JavaScript"