On Wed, 2007-10-17 at 15:46 -0600, Tim Schaub wrote: > Yeah, this is a standard JS optimization technique. > > Note that it is strictly slower to concatenate a handful of strings with > array.join, but it is good practice for largish numbers. > > And, no new methods needed in my mind. > > Another thing to keep in mind is that any time you know the number of > elements in the array, it is better to initialize the array with a > length (instead of using push).
OK, I'll use all the info in this thread to create a patch for VMS.js. Hope I'll get to it today. Thanx for that last tip Tim! Roald -- Roald de Wit Software Engineer, http://lisasoft.com _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
