[mapguide-users] Why MgMap::Create is so slow
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Tue Apr 28 16:03:00 EDT 2009
In my tests, the greatest performance killer is the retrival of identity
properties for selectable layers.
You can see if this is the case, if you try out the new profiling button
in Maestro.
Install the latest preview of Maestro, open the MapDefinition, and then
click the big green V.
It should now show you some stats related to creating and rendering the map.
Regards, Kenneth Skovhede, GEOGRAF A/S
Bruce Dechant skrev:
> Bruno,
>
> It is slow because for every layer in the map the web tier sends 2 requests (Authenticate + GetResourceContent) to the server. So in your map case there would be a minimum of 400 requests to the server. This is something we are aware of and would like to change. We have some test maps with over 700 layers. Ideally, we would like to change this down to about 2 requests regardless of the # of layers- ie: Authenticate + CreateMap. In order to do this we need to move the map creation to the server side and then serialize back to the web the created map object.
>
> Thanks,
> Bruce
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Bruno Scott
> Sent: Tuesday, April 28, 2009 9:51 AM
> To: mapguide-users at lists.osgeo.org
> Subject: [mapguide-users] Why MgMap::Create is so slow
>
>
> I have a quite big MapDefinition with about 200 layers.
> When a use the MgMap API Create it takes about 20 seconds
> But if i use the GetResourceContent it almost instantly.
>
> I wonder why this function is so slow.
>
> The only thing i'm trying to do is to read this MapDefinition to retreive
> information about a layer
> his resource Id
> his group hierarchy
> and his display order.
>
> Bruno
>
More information about the mapguide-users
mailing list