Re:Google releases Closure, the tools behind the JS geniuses
by enneff on Monday November 09, 2009 @10:04PM
(#932328)
"it turns your regular JavaScript code into compact, high-performance JavaScript code."
It won't actually make your JavaScript much faster, if it does at all. The major benefits are the exclusion of unused code, and code in-lining where possible. This helps a lot in terms of cutting down loading times, but your code is still only really going to be about as efficient as it was before.
Re:Google releases Closure, the tools behind the JS geniuses
by swolchok on Tuesday November 10, 2009 @12:00AM
(#932472)
Not true if you use objects as namespaces -- it is capable of reducing a.b.c.d to one access, particularly with inlining, and this construct has a runtime cost in JS.
It won't actually make your JavaScript much faster, if it does at all. The major benefits are the exclusion of unused code, and code in-lining where possible. This helps a lot in terms of cutting down loading times, but your code is still only really going to be about as efficient as it was before.