Home » Modeling » EMF » Problem performance getString of ItemProvider
|Re: Problem performance getString of ItemProvider [message #498291 is a reply to message #498276]
||Mon, 16 November 2009 11:45
| Ed Merks
Registered: July 2009
David CHAUTARD wrote:
> Thanks Ed,
>> I'd expect it to be proportional to the types of children and the
>> number of selected objects
> You think that this behaviour in normal?
It's not entirely clear to me what "this behavior" you're referring to,
but yes, of course it's going to be proportional to the number of menu
entries that need to be populated.
> I understand that these methods are called for the selection, but I
> don't understand why it is done for each element of my tree, because
> the same treatment is realised several time, while just a treatment
> for the selection is needed.
I don't understand either and that's not normal behavior. I imagine the
debugger would be better at explaining this than me.
> My problem is when I add or remove an element of my tree, the action
> is very long, according to this treatment, while it should be fast.
> Have you an idea to improve this treatment?
Given that I can't reproduce your problem, it's hard to explain what you
might do differently to avoid it. It seems to me the problem is the
fact it's being called for every element of the tree and not just for
the one selected element.
Current Time: Fri Nov 15 15:20:00 GMT 2019
Powered by FUDForum
. Page generated in 0.02896 seconds