[OpenMap Users] Performance considerations

From: Bart Jourquin <bart.jourquin@fucam.ac.be>
Date: Wed Oct 15 2003 - 06:26:13 EDT

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().

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()...

Bart

-- 
Prof Dr Bart Jourquin
F.U.Ca.M. - G.T.M.
Chaussee de Binche, 151a
B7000 Mons
Belgium
Tel. : +32 65 323293
Fax. : +32 65 315691
http://message.fucam.ac.be/~jourquin
--
[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 06:27:43 2003

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