There is an additional benefit to this optimization that goes beyond speeding up the compiler. It should produce faster Javascript as well. Unless I'm mistaken, using an iterator to iterate over a list requires the creation of a Javascript object to represent the iterator. That object creation can be avoided by iterating over the list by index instead. On Blueprint, we have been avoiding using the nice for...each construct for this very reason. Unfortunately, I don't have any data that suggests just how much of a difference the index instead of iterator makes. --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
- [gwt-contrib] Re: Speed up compilation by rewriting fo... Scott Blum
- [gwt-contrib] Re: Speed up compilation by rewriti... דניאל רייס
- [gwt-contrib] Re: Speed up compilation by rew... Aaron Steele
- [gwt-contrib] Re: Speed up compilation by... Alex Rudnick
- [gwt-contrib] Re: Speed up compilatio... Alex Rudnick
- [gwt-contrib] Re: Speed up compilatio... Aaron Steele
- [gwt-contrib] Re: Speed up compilatio... Amit Manjhi
- [gwt-contrib] Re: Speed up compilatio... Ray Cromwell
- [gwt-contrib] Re: Speed up compilatio... דניאל רייס
- [gwt-contrib] Re: Speed up compilatio... Ray Cromwell
- [gwt-contrib] Re: Speed up compilatio... TazmanianD
- [gwt-contrib] Re: Speed up compilatio... John Tamplin
- [gwt-contrib] Re: Speed up compilatio... Ray Cromwell
- [gwt-contrib] Re: Speed up compilatio... דניאל רייס
- [gwt-contrib] Re: Speed up compilatio... John Tamplin
- [gwt-contrib] Re: Speed up compilatio... דניאל רייס
- [gwt-contrib] Re: Speed up compilatio... Scott Blum
- [gwt-contrib] Re: Speed up compilatio... Lex Spoon
- [gwt-contrib] Re: Speed up compilatio... Scott Blum
- [gwt-contrib] Re: Speed up compilatio... Isaac Truett
- [gwt-contrib] Re: Speed up compilatio... Ian Petersen
