On Monday 15 September 2003 23:25, Roberto Brunelli wrote:
> >The menu is stat'ed, not parsed each time.  It is only re-parsed if the
> > stat() call says a change occured.
>
> When I change the menu file, changes are (nearly) immediately available:
> so I guess that the stat is quite frequent. I would like to make it not
> so frequent' or turn it off completely. How can I do this?
>

The stat occurs whenever the menu is opened.

Plus side, we don't waste time updating the menu until it actually needs to be 
displayed.  This is good because if the menu is changed several times in a 
short period (say, lots of packages being installed which automatically 
update the menu) we only re-read the menu once.

Bad side, we stat() each time the menu is opened.  For most of us the stat() 
is no big deal.

If you want to control the stat() call, look at blackbox.cc in the method 
checkMenu().  Perhaps a counter and an if statement so you only stat every 5, 
10th or whatever call.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]

Reply via email to