[OpenLayers-Dev] [OpenLayers 3] type instantiation performance

Eric Lemoine eric.lemoine at camptocamp.com
Sat Oct 16 15:09:40 EDT 2010


On Sat, Oct 16, 2010 at 8:57 PM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> Hi,
>
> my opinion is that we can make much more use of object literals internally. Which means e.g. to say
>
> var a = {x: 23.4, y: 42.4};
>
> instead of
>
> var a = new OpenLayers.Pixel(23.4, 42.4);
>
> We can do this wherever we just pass on values, without the need to call any memeber functions.

I fully agree with this.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Dev mailing list