Re: [OpenMap Users] Performance considerations

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Oct 15 2003 - 11:08:35 EDT

Hi Bart,

On Wednesday, October 15, 2003, at 06:26 AM, Bart Jourquin wrote:

> Hi all,
>
> My app has to load large shape files (EsriPlugin) and, doing so, it
> has its performances dramatically decreased.
>
> I tried to profile it and the result if this tracing shows that more
> than 96% the CPU time is spent in the following sequence:
>
> getEsrilGraphicList() -> getGeometry() -> <CUT> ->
> DrawingAttributes.setFrom().

I can't follow this path to DrawingAttributes.setFrom(). I just get to
setTo(). Can you give me more info on how you are getting to the
setFrom() method?

> More precisely, it is the call to resetGUI() inside setFrom() whih
> takes the CPU time. It's obviously because this member call GUI
> related stuff which is time consuming.
>
> As I don't have knownledge enough of the complete OpenMap
> architecture, I just tried to remove the call to resetGUI() in
> com.bbn.openmap.omGraphics.DrawingAttributes.setFrom(...).
>
> I was surprised that my app still works correctly and that this change
> dramatically improves its performances (my layers are now loaded in a
> few seconds instead of several minutes!)
>
> My question is thus simple: is the call to resetGUI() needed there? I
> have the impression that it is only needed by getColorAndLineGUI()
> which also calls resetGUI()...

It's really there for the drawing tool or for a layer that has a
DrawingAttributes GUI displayed, and an OMGraphic is selected. By
calling resetGUI in setFrom, the GUI updates to show what the settings
are in the OMGraphic.

- Don

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Oct 15 11:11:11 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT