[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Application startup performance tuning...
From: |
Michael Hanni |
Subject: |
Application startup performance tuning... |
Date: |
Thu, 13 Mar 2003 22:48:43 -0800 (PST) |
Hi,
We are spending a boat load of time constructing the menus and acting on the
various messages sent to the menus during startup. By my testing NSMenu
sizeToFit is called 71 times on loading GSTest.app alone (loading
GWorkspace.app is even more intense, several hundred would be a good guess.)
Attached is a patch that kills 67 of those calls. Visually things look faster
and there are no display problems that I could see. Is there some way to
scientifically test this?
Basically, I've added a BOOL that defaults to NO but is set to YES in NSMenu
_showTornOffMenuIfAny:. Depending on the value of this BOOL NSMenu sizeToFit
either bails at the beginning or goes on.
Anyhow, I've attached a patch... This will not apply cleanly. I would make a
clean patch, but as you know the CVS server is only spitting this out, "cvs
[diff aborted]: recv() from server subversions.gnu.org: EOF". Would somebody
please give this a spin a see if its worthwhile working on stuff like this...
Cheers,
Michael
NSMenu.opt.patch
Description: NSMenu.opt.patch
NSMenu.h.opt.patch
Description: NSMenu.h.opt.patch
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Application startup performance tuning...,
Michael Hanni <=