TraceMonkey should be regarded as Mozilla's secret weapon, which will make Firefox execute JavaScript much faster. The following table lists whether Firefox has enabled TraceMonkey, obviously, we can see the difference, and this technology will be put in Firefox 3.1, so that you can enjoy the benefits of TraceMonkey. What is TraceMonkey? Next let's take a look at erlang's explanation: TraceMonkey dramatically improves the speed of your JavaScript operations. (Click to enlarge .)
(Credit: Mozilla)
TraceMonkey is based on the trace tree theory. Is a JIT [Just In Time] optimization technology. Simply put, JIT is "when appropriate" (that is, the essentials of Just In Time) compile JavaScript into native code and execute it again (Java has long used JIT to improve performance ). The trace tree further promotes these native codes, such as optimizing function calls, optimizing type detection, and optimizing loops. It is said that after this feature is enabled in multiple performance tests, the running performance of the script has been significantly improved.
Related Articles]
- Pursuit of better Firefox 3 expansion competition announcement
- Firefox 3.1 Beta 1 released on December 1, August 19