English Links: Writing Fast, memory-efficient JavaScript Many JavaScript engines, such as Google's V8 engine (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 's (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 the engine cannot optimize, whether the garbage collector (GC) can reclaim what I want
- There are some common pitfalls when writing high-performance code, and in this article we'll show some proven, better ways to write code. So, how does JavaScript work in V8?
|
Read the full text
"Translate" write high-performance JavaScript