[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#90867: Menu is more important than it would seem



On Mon, 26 Mar 2001, Jules Bean wrote:
> On Mon, Mar 26, 2001 at 12:09:28PM +0100, Julian Gilbey wrote:
> > On Sun, Mar 25, 2001 at 11:40:13PM -0300, Henrique M Holschuh wrote:
> > > Only on broken window-managers (IMHO), or if the packages providing menu
> > > entries are not calling update-menus (which is a bug, AFAIK).  Try it under
> > > WindowMaker.
> > From my work with fvem, the primary issue seems to be that if every
> > time a menu is requested, the window manager needs to determine
> > whether the menu has changed, there is a significant performance hit.
> 
> If that hit can be reduced to a single call to stat() or fstat() (and
> I can't see why it can't) then I can't believe that amounts to much of 

It can, and the performance hit is negligible IMHO. Heck, debian cron can
detect and reload configuration on the fly for a file and an entire
directory of files, and it does that check every minute. Nobody ever
complained, AFAIK.

> Of course, there's a performance hit in the event that the menu
> actually has changed, but that seems acceptable to me.

Not only that, but you also only need to check the menu tree for changes
when the user requests the menu.  It will delay the menu's drawing a bit if
there were indeed changes... which is quite acceptable.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: