To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=106100





------- Additional comments from t...@openoffice.org Tue Oct 27 11:15:28 +0000 
2009 -------
Using log files the following was found when tracing the 2nd call when opening
the menu:

- overall time until the context menu gets displayed: ~485 ms

- excluding all parts that are only within the resolution of the time the
problem comes down to 4 calls to GetHelpText(nSlotId), each of them taking 78,
94, 94 and 94 ms, which amounts to an overall of 360 ms.

The calls to this function while opening the context menu look like this: 
1)  SfxUnoMenuControl* SfxMenuControl::CreateControl
2) SfxVirtualMenu::CreateFromSVMenu  ~ line 498 when calling Bind
3) SfxVirtualMenu::CreateFromSVMenu  ~ in line 576 when calling Bind
+ n-times) the same as in 3)
4) SfxVirtualMenu::CreateFromSVMenu  ~ line 569 when calling Bind
+ m-times) the same as in 4)

Thus we have 4 different locations where the help text is obtained.
If this is to be improved within sfx2 then it should be possible to get the help
text just once and pass it down to the other functions that have need for it.

However, if the extension manager was opened, the overall time to display the
context menu is still somewhat smaller then what could be obtained here in sfx2
by implementing the above fix. After the extension manager was opened, the code
execution up to executing the context menu is only just about 75 ms.
Thus there still seems to be some other, though compared to GetHelpText, rather
small beneficial effect.


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to