From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MKP9p-0001jM-Bn for mharc-grub-devel@gnu.org; Sat, 27 Jun 2009 00:04:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKP9n-0001eX-8C for grub-devel@gnu.org; Sat, 27 Jun 2009 00:04:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKP9h-0001Tn-Oj for grub-devel@gnu.org; Sat, 27 Jun 2009 00:04:50 -0400 Received: from [199.232.76.173] (port=56431 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKP9h-0001Ta-LN for grub-devel@gnu.org; Sat, 27 Jun 2009 00:04:45 -0400 Received: from c60.cesmail.net ([216.154.195.49]:63451) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MKP9h-0003Vf-1K for grub-devel@gnu.org; Sat, 27 Jun 2009 00:04:45 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 27 Jun 2009 00:04:38 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id 34B4134C6D for ; Sat, 27 Jun 2009 00:11:25 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: References: <1245697145.1926.11.camel@mj> <1245698882.24040.1.camel@mj> <1245701210.2754.12.camel@mj> <1245795036.3204.26.camel@mj> <1246062150.20234.70.camel@mj> Content-Type: text/plain Date: Sat, 27 Jun 2009 00:04:37 -0400 Message-Id: <1246075477.4569.5.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 (2.26.2-1.fc11) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] File access library for lua 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: Sat, 27 Jun 2009 04:04:51 -0000 On Sat, 2009-06-27 at 11:53 +0800, Bean wrote: > Yes, actually it's just a bunch of file_exist AND or OR together, but > I think if we use this kind of test often enough, implement it in c > would be more efficient. So far, we only have one file. I checked the Lua reference manual, and no file related functions take lists of filenames: http://www.lua.org/manual/5.1/ If it was ineffective, I think Lua developers would have designed the file access differently. -- Regards, Pavel Roskin