Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] DSF/GDB: inefficient handling of IHasChildrenUpdate for variables and expressions?

Mikhail Khodjaiants wrote:
Hi,

When the flexible hierarchy viewer displays an item it sends an IHasChildrenUpdate request to the model. The answer to this request is boolean. For variables or expressions the DSF's IExpressions service translates the request into the "getSubExpressionCount" call. DSF/GDB uses variable object to manage all variable and expression related operations. The parent variable object contains an attribute ("numchild") that can be used as an indicator whether it has children or not. Unfortunately this attribute can not be used to get the child count because of some GDB specific issues. Being asked for the child count the DSF/GDB implementation issues the "var-list-children" command which is very expensive - it creates variable objects for all children. I think adding the "hasSubExpressions" method to IExpressions would allow DSF/GDB to handle this situation in much more efficient way.
+1
Why this or similar method is missing?
No one requested it ;-)

Cheers,
Pawel

Thanks,
Mikhail
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top