grub-devel
[Top][All Lists]
Advanced

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

Re: Automagic command loading


From: Tomas Ebenlendr
Subject: Re: Automagic command loading
Date: Wed, 29 Sep 2004 23:38:01 +0200
User-agent: Mutt/1.5.6i

> I don't really understand why this solution is better than autocmd.lst. 
> Can you summerize what are the problems in autocmd.lst and why this is 
> superior?
> 
> Okuji

I wanted to try this solution.

Advantage: no need of generating autocmd.lst, and editing this file by
user, when he adds his own module to distro-precompiled grub.

Disadvantage: current solution slowly reads the contens of directory.
This is probably caused by opening files by /full/ path, where we
principially have opened directory (and resolved path to it.).

Not so disadvanyage because:
1.) this solution caches the contents of directory in $prefix. So it is
slow only when inserting autocmd or after $prefix is changed. (or user
executed cache_autocommands - now i think the caching at insert of module
is misfeature. User can use cache_autocommands manually).
2.) Latency was under bochs on slow (P300) machine.

You can always turn it off by not inserting module autocmd.

-- 
                                 Tomas 'ebi' Ebenlendr
                                 http://get.to/ebik
                                 PF 2004.7458360213





reply via email to

[Prev in Thread] Current Thread [Next in Thread]