From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCmap-0004tp-P2 for mharc-grub-devel@gnu.org; Wed, 29 Sep 2004 18:06:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCmao-0004tG-Fw for grub-devel@gnu.org; Wed, 29 Sep 2004 18:06:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCman-0004sw-Oj for grub-devel@gnu.org; Wed, 29 Sep 2004 18:06:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCman-0004se-Jz for grub-devel@gnu.org; Wed, 29 Sep 2004 18:06:33 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCmUM-0007o6-RX for grub-devel@gnu.org; Wed, 29 Sep 2004 17:59:55 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 278CE8562 for ; Wed, 29 Sep 2004 23:59:53 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 06067-02 for ; Wed, 29 Sep 2004 23:59:51 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 6A46C8539 for ; Wed, 29 Sep 2004 23:59:51 +0200 (CEST) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 142F7C04C for ; Wed, 29 Sep 2004 23:59:51 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <20040928190544.GA24852@artax.karlin.mff.cuni.cz> <200409291702.16894.okuji@enbug.org> <20040929213801.GC30478@artax.karlin.mff.cuni.cz> From: Marco Gerards Date: Wed, 29 Sep 2004 22:00:01 +0000 In-Reply-To: <20040929213801.GC30478@artax.karlin.mff.cuni.cz> (Tomas Ebenlendr's message of "Wed, 29 Sep 2004 23:38:01 +0200") Message-ID: <877jqcn3by.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl 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 22:06:34 -0000 Tomas Ebenlendr writes: > 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.). Isn't it that slow because the *entire* ELF is read into memory? > 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). So how should it work in your opinion? I think it should not cache everything at startup. It should look for "ls.mod" when you run "ls". If it can not be found it should try all modules until "ls" was found. The cache is filled automatically. > 2.) Latency was under bochs on slow (P300) machine. > > You can always turn it off by not inserting module autocmd. Or use another autoloader if I understand things correctly. -- Marco