No matter what language you program, you should not rely on the compiler to
improve your code. Compilers may do optimizations, but they wont speed up
your code much.

Regarding closure compiler, it does function inlining when compiling in
advanced mode, but I'm not sure that would convert an each loop into a for
(probably not). Plus, it is very hard to get anything compiled in advanced
mode, specially if you depend on third party code.

Personally I think that if you really care about performance, you should use
as much native JS as you can. Everything else is just adding layers in
between.


On Thu, Apr 22, 2010 at 1:37 PM, Andr? Fiedler <[email protected]
> wrote:

> How about google closure compiler? I think this one does code
> optimisation.
>
> Am 22.04.2010 um 22:30 schrieb Sanford Whiteman <
> [email protected]
>  >:
>
> > Yeah,  I  love "edgy" optimization, especially with IE and mobile CPUs
> > to  deal  with,  but  you've got to step back when stuff looks totally
> > whacked-out. Something that could compile code down to whacked-out for
> > production  would  be cool, even serving different optimizations based
> > on engine....
> >
> > -- S.
> >
> >
> >
> > --
> > Subscription settings:
> http://groups.google.com/group/mootools-users/subscribe?hl=en
>

Reply via email to