Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCmIL-0005mG-DP for mharc-grub-devel@gnu.org; Wed, 29 Sep 2004 17:47:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCmIK-0005lg-Al for grub-devel@gnu.org; Wed, 29 Sep 2004 17:47:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCmIJ-0005lJ-KO for grub-devel@gnu.org; Wed, 29 Sep 2004 17:47:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCmIJ-0005lD-GT for grub-devel@gnu.org; Wed, 29 Sep 2004 17:47:27 -0400 Received: from [195.113.31.125] (helo=artax.karlin.mff.cuni.cz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCmBn-0004yR-Ci for grub-devel@gnu.org; Wed, 29 Sep 2004 17:40:43 -0400 Received: by artax.karlin.mff.cuni.cz (Postfix, from userid 17122) id 7C31748C9; Wed, 29 Sep 2004 23:38:01 +0200 (CEST) Date: Wed, 29 Sep 2004 23:38:01 +0200 From: Tomas Ebenlendr To: The development of GRUB 2 Message-ID: <20040929213801.GC30478@artax.karlin.mff.cuni.cz> Mail-Followup-To: The development of GRUB 2 References: <20040928190544.GA24852@artax.karlin.mff.cuni.cz> <200409291702.16894.okuji@enbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409291702.16894.okuji@enbug.org> User-Agent: Mutt/1.5.6i Subject: Re: Automagic command loading X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 21:47:28 -0000 > 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