[OpenLayers-Dev] VML rendering in IE is slow with big geometries. Proposed Fix.

Roald de Wit rdewit at users.sourceforge.net
Wed Oct 17 19:24:22 EDT 2007


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






More information about the Dev mailing list