Skip to main content



      Home
Home » Eclipse Projects » GEF » Zoom performance and connectors
Zoom performance and connectors [message #148276] Fri, 20 August 2004 15:01 Go to next message
Eclipse UserFriend
Originally posted by: none.bphnx.com

Has anyone noticed any performance issues with Zoom?
Using the logic example, I programatically created 1000 XORGate objects
(10 X 100) and created around 20,000 connections. When I zoom in and out
on this drawing it takes over 1 minute to perform the operation and the
CPU is running around 100%. This is on a P4 2GHz 512MB RAM machine.

The problem seems to come from how many connectors you have. I decreased
the number of connectors by half and then it only took 10-15 seconds to
zoom. Then I decreased the connectors to only 1 per object and the zoom
was nearly instant.

Has anyone seen this before?
Re: Zoom performance and connectors [message #148317 is a reply to message #148276] Mon, 23 August 2004 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The reason is that connection routing is occurring when zoom changes. Which
connection router do you have activated? The shortest-path connection
router has something like O(n*n*n*n) performance characterstics, so I'm not
surprised.

I have unreleased code which will prevent this type of routing during zoom
level changes. I need to make it compatible, as discussed here:
http://dev.eclipse.org/mhonarc/lists/gef-dev/msg00390.html

"bandrews" <none@bphnx.com> wrote in message
news:cg5hr5$259$1@eclipse.org...
> Has anyone noticed any performance issues with Zoom?
> Using the logic example, I programatically created 1000 XORGate objects
> (10 X 100) and created around 20,000 connections. When I zoom in and out
> on this drawing it takes over 1 minute to perform the operation and the
> CPU is running around 100%. This is on a P4 2GHz 512MB RAM machine.
>
> The problem seems to come from how many connectors you have. I decreased
> the number of connectors by half and then it only took 10-15 seconds to
> zoom. Then I decreased the connectors to only 1 per object and the zoom
> was nearly instant.
>
> Has anyone seen this before?
>
>
>
>
>
Re: Zoom performance and connectors [message #148325 is a reply to message #148317] Mon, 23 August 2004 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.bphnx.com

I am using the ShortestPathConnectionRouter in the logic sample. I
switched it to the ManhattanConnectionRouter and now the zoom is only 3-5
seconds. Big difference! Do you know if this problem is logged already? I
did a search on "zoom" and bugzilla turned up nothing. So basically the
problem is routing should not occur while zooming?

thanks,

Barry

Randy Hudson wrote:

> The reason is that connection routing is occurring when zoom changes. Which
> connection router do you have activated? The shortest-path connection
> router has something like O(n*n*n*n) performance characterstics, so I'm not
> surprised.

> I have unreleased code which will prevent this type of routing during zoom
> level changes. I need to make it compatible, as discussed here:
> http://dev.eclipse.org/mhonarc/lists/gef-dev/msg00390.html

> "bandrews" <none@bphnx.com> wrote in message
> news:cg5hr5$259$1@eclipse.org...
> > Has anyone noticed any performance issues with Zoom?
> > Using the logic example, I programatically created 1000 XORGate objects
> > (10 X 100) and created around 20,000 connections. When I zoom in and out
> > on this drawing it takes over 1 minute to perform the operation and the
> > CPU is running around 100%. This is on a P4 2GHz 512MB RAM machine.
> >
> > The problem seems to come from how many connectors you have. I decreased
> > the number of connectors by half and then it only took 10-15 seconds to
> > zoom. Then I decreased the connectors to only 1 per object and the zoom
> > was nearly instant.
> >
> > Has anyone seen this before?
> >
> >
> >
> >
> >
Re: Zoom performance and connectors [message #148333 is a reply to message #148325] Mon, 23 August 2004 15:40 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The anchors in the logic example already have a check in them to ignore zoom
changes. The problem is that the size of the primary layer is changing.

I thought I had logged this problem once, but I relogged it this morning:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=72436

"bandrews" <none@bphnx.com> wrote in message
news:cgd87a$vlh$1@eclipse.org...
> I am using the ShortestPathConnectionRouter in the logic sample. I
> switched it to the ManhattanConnectionRouter and now the zoom is only 3-5
> seconds. Big difference! Do you know if this problem is logged already? I
> did a search on "zoom" and bugzilla turned up nothing. So basically the
> problem is routing should not occur while zooming?
>
> thanks,
>
> Barry
>
> Randy Hudson wrote:
>
> > The reason is that connection routing is occurring when zoom changes.
Which
> > connection router do you have activated? The shortest-path connection
> > router has something like O(n*n*n*n) performance characterstics, so I'm
not
> > surprised.
>
> > I have unreleased code which will prevent this type of routing during
zoom
> > level changes. I need to make it compatible, as discussed here:
> > http://dev.eclipse.org/mhonarc/lists/gef-dev/msg00390.html
>
> > "bandrews" <none@bphnx.com> wrote in message
> > news:cg5hr5$259$1@eclipse.org...
> > > Has anyone noticed any performance issues with Zoom?
> > > Using the logic example, I programatically created 1000 XORGate
objects
> > > (10 X 100) and created around 20,000 connections. When I zoom in and
out
> > > on this drawing it takes over 1 minute to perform the operation and
the
> > > CPU is running around 100%. This is on a P4 2GHz 512MB RAM machine.
> > >
> > > The problem seems to come from how many connectors you have. I
decreased
> > > the number of connectors by half and then it only took 10-15 seconds
to
> > > zoom. Then I decreased the connectors to only 1 per object and the
zoom
> > > was nearly instant.
> > >
> > > Has anyone seen this before?
> > >
> > >
> > >
> > >
> > >
>
>
Previous Topic:How can Implement Copy, Paste?
Next Topic:GEF Logic Example
Goto Forum:
  


Current Time: Wed May 07 17:51:02 EDT 2025

Powered by FUDForum. Page generated in 0.04392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top