Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPerforrmance and translateXXXX methods
https://www.eclipse.org/forums/index.php/mv/msg/71586/223732/#msg_223732
When opening a diagram with about 50 nodes and 700 lines, my GMF and GEF
based graphical editor took about 20 seconds. The execution profiling data
shows the top three time spending methods are Figure's
translateToAbsolute(), translateToRelative() and translateToParent().
I am wondering how to cut down this. Is it something to do with
coordinate system ? Any help will be appreciated.
Li]]>Li Ding2006-10-04T17:10:14-00:00Re: Perforrmance and translateXXXX methods
https://www.eclipse.org/forums/index.php/mv/msg/71586/223904/#msg_223904
Originally posted by: none.ibm.com
These methods are no-ops by default. So they must be overridden and calling
some other method that is taking all the time. Do you have more info? What
about invocation count? Even a really fast method takes a lot of time if you
call it millions of times.
"Li Ding" <lding@ca.ibm.com> wrote in message
news:a4c1ded601a3a776074b41687ba0044d$1@www.eclipse.org...
> Hi All,
>
> When opening a diagram with about 50 nodes and 700 lines, my GMF and GEF
> based graphical editor took about 20 seconds. The execution profiling data
> shows the top three time spending methods are Figure's
> translateToAbsolute(), translateToRelative() and translateToParent(). I am
> wondering how to cut down this. Is it something to do with coordinate
> system ? Any help will be appreciated.
>
> Li]]>2006-10-07T14:45:26-00:00