Best practice for menus...
ambassador at fourthworld.com
Wed Jan 18 00:43:25 CET 2017
J. Landman Gay wrote:
> On 1/17/17 2:27 PM, Richard Gaskin via use-livecode wrote:
>> I was curious about performance, so I ran the test copied below, with
>> these results:
>> MenuItem: 219 ms
>> As text: 10 ms
> Do the results change if you lock menus before changing them?
> Manipulating menus, especially on Macs, is expensive and locking
> menus helps to alleviate that. Not sure about other platforms though.
I did test that, but no difference here, as I ran the test on Ubuntu.
IIRC that's a Mac-only property that has no effect on Windows and Linux,
merely preventing the update of the OS menubar from LC until idle.
I hope one day that'll be a Linux property, too. Like Mac, Ubuntu has a
global menu bar, and it would be nice to also have control over when it
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode