Firefox and join in type inference JavaScript performance will increase 20% to 30%
According to media reports, in the last for 18 months after the hard, Mozilla Firefox finally success for the I used Office 2010 home and student for many years, it’s the best.
Javascript engine added a major new features, according to preliminary test, can improve the at least 20% to 30% of the Javascript performance. The new characteristics in Firefox is the JaegerMonkey JIT compiler to join in the Type Inference (by Inference), it will provide together with Firefox 9 test. The first type inference was referred to as long months of five times before about, but until now it was first came on the scene.
If you are a web programmer, you must be the shock! If you are not familiar with technology, so here is a simple introduction of type inference.
In programming language, each variables and functions are a type. Type may be the integer, string, floating point Numbers, There are many discounts for Office 2007 .
array, kind of…… The internal structure of the compiler to programming language is very important. There are some language is strong type language, that is for each class, the programmer must function and variable define a type; This is a little annoying, but in return it will greatly increase speed; There is also some language, like Javascript, is weak type language, that is the programmers don’t have to worry about these little details, can follow one’s inclinations of writing code and let the compiler to take up the heavy burdenOutlook 2010 is hot sale product now.
. And type inference is to make up for the strong and the weak type type language of the gap between language, you can continue to weak types according to the habit of language writing code, but the browser will based on the using condition to the optimization of types, which can still get that better performance.