[OpenLayers-Users] Performance?
David William Bitner
bitner at gyttja.org
Tue Aug 15 10:03:38 CDT 2006
One thing that you need to keep in mind is that a "traditional" mapserver
app needs to draw one image and return it to the client -- using
OpenLayers, several requests are made to mapserver returning several images
that cover an area larger than the extent being seen on the screen.
On initial load a traditional mapserver app should always load faster than
the same map being drawn with OpenLayers (uncached) -- the difference is the
interactivity once you are panning around is much greater and there are more
possibilities to use KaMap's tile.php or some kind of cacheing (ie squid) to
allow for pre-rendered images.
If it is taking a couple seconds to even draw the one image, you might want
to make sure that you try to optimize your mapfile and your data (indexes,
picking and chosing when to use things such as anti-aliasing, what image
output to use to minimize the file size of the image created, etc.).
On 8/15/06, Jeff Dege <jdege at korterra.com> wrote:
>
> I've been running through WMS.
>
> > -----Original Message-----
> > From: Marcos Cobeña [mailto:marcoscobena at gmail.com]
> > Sent: Tuesday, August 15, 2006 5:29 AM
> > To: Jeff Dege
> > Cc: users at openlayers.org
> > Subject: Re: [OpenLayers-Users] Performance?
> >
> > Hi Jeff,
> >
> > Just one question, are you calling MS through WMS queries or just
> > using MS layer recently coded?
> >
> > If you are using WMS, it seems better to contact MS guys, they'll
> > surely be able to explain why it takes more time than expected.
> >
> > Hope this helps.
> >
> > Regards,
> >
> > 2006/8/14, Jeff Dege <jdege at korterra.com>:
> > > Is there some fundamental reason why accessing MapServer
> > maps through
> > > OpenLayers is so much slower than doing so using either
> > MapServer's CGI
> > > or scripting interfaces?
> > >
> > > I'm experimenting with a moderate data set - seven shape
> > files, largest
> > > is 150MB. When I ask MapServer's CGI executable to draw me
> > a map, it
> > > takes a couple of seconds. The MapScript DLL is even
> > faster, despite
> > > being asked to do more.
> > >
> > > But OpenLayers can take forever - upwards of sixty seconds,
> > sometimes,
> > > to draw a map of the same size.
> > >
> > > I've tried Ka-Map (directly, I've not been able to get the
> > Ka-Map layer
> > > within OpenLayers to work), and while it redraws cached
> > tiles quickly,
> > > it's only moderately faster than OpenLayers at drawing them
> > in the first
> > > place.
> > >
> > > Is this normal?
> > >
> > > What can I do to fix it?
> > >
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at openlayers.org
> > > http://mailman-viper.python-hosting.com/listinfo/users
> > >
> >
> >
> > --
> > Marcos - http://www.youcannoteatbits.org
> >
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://mailman-viper.python-hosting.com/listinfo/users
>
--
************************************
David William Bitner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-viper.python-hosting.com/pipermail/users/attachments/20060815/897eeef6/attachment.html
More information about the Users
mailing list