[Chameleon] Performance measuring question

Gambin Dejan Dejan.Gambin at pula.hr
Thu May 4 03:06:17 EDT 2006


Hi Julien,

You told me to remove the PROJECTION object in map file but then I have
problems with some widgets (QuickZoom for example). Can it be solved? Or
is wiser to leave the PROJECTION parameter in map file? I wanted to
remove it because all my data are in the same projection so maybe I
could gain some performance benefits...

dejan

> -----Original Message-----
> From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com] 
> Sent: Thursday, April 13, 2006 3:37 AM
> To: Gambin Dejan
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Performance measuring question
> 
> 
> Hi,
> If you are confident in your PHP and Chameleon developper 
> skills you can 
> try to profile your application. A tool like xdebug 
> (http://www.xdebug.org/) can be helpful, but you have to 
> understand the 
> ouput.
> 
> But the first place to look, like others said, is the mapfile. Remove 
> the PROJECTION object and prefilter your vector and raster data to 
> certain scales.
> 
> To help you optimizing your mapfile, try using a simple mapscript 
> example instead of chameleon.
> <?php
> dl('php_mapscript.so'); $map_path="/var/www/html/ms/map_files/";
> 
> $map = ms_newMapObj($map_path."europe.map");
> $starttime = microtime(1);
> $image=$map->draw();
> $endtime = microtime(1);
> $image_url=$image->saveWebImage();
> 
> echo 'Drawn in '.($endtime-$starttime).' second.';
> ?>
> <HTML>
> <HEAD>
> <TITLE>Example 1: Displaying a map</TITLE>
> </HEAD>
> <BODY>
>      <IMG SRC=<?php echo $image_url; ?> >
> </BODY>
> </HTML>
> 
> Julien
> 
> Gambin Dejan wrote:
> > Hi list,
> > 
> > I have finally finished my first serious Chameleon 
> application. It is 
> > working very good, but I would like to see if there are 
> possibly some 
> > performance problems that can be solved because I am 
> experiencing slow 
> > map drawing sometimes (when zooming in)....I'll try to be more 
> > detailed:
> > 
> > My current application has several layers of which the one 
> is raster 
> > layer defined over 12 tif files (40MB each) that I joined using 
> > tileindex..I have also internally tiled and created 
> internal overviews 
> > on each of the tif files...
> > 
> > Next I have the main layer, that is roads...it is a LINE shape that 
> > has about 1MB (and its dbf has only 73KB with 247 records). 
> This layer 
> > is also labeled with two lines, one is overlayed over the other...
> > 
> > My questions are:
> > 
> > 1. Since the data I presented shouldn't be "heavy" and assuming 
> > testing on my localhost - what can be the main reason for sometimes 
> > slow map drawing? I am using JSAPI mode
> > 
> > 2. How to debug it on Windows? How can I see what is causing this 
> > slowness? I would like to know if hardware is the reason (disk 
> > subsystem or RAM) or the application...
> > 
> > 3. I have created my own buttons and icons...maybe they are 
> "heavy"? 
> > Are they somehow cached? What about the caching anyway?
> > 
> > Any suggestions are welcome
> > 
> > Thanks very much
> > 
> > regards, dejan
> > 
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org 
> > http://lists.maptools.org/mailman/listinfo/chameleon
> 
> -- 
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> 



More information about the Chameleon mailing list