From owner-freebsd-hackers Wed May 23 16:38: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dayspring.firedrake.org (dayspring.firedrake.org [195.82.105.251]) by hub.freebsd.org (Postfix) with ESMTP id 9E4D937B424 for ; Wed, 23 May 2001 16:37:55 -0700 (PDT) (envelope-from float@firedrake.org) Received: from float by dayspring.firedrake.org with local (Exim 3.12 #1 (Debian)) id 152iC4-0006vT-00; Thu, 24 May 2001 00:37:32 +0100 Date: Thu, 24 May 2001 00:37:31 +0100 To: "Andresen,Jason R." Cc: Terry Lambert , Nadav Eiron , hackers@FreeBSD.ORG Subject: Re: technical comparison Message-ID: <20010524003731.B25053@firedrake.org> References: <3B0B2824.949B119A@mindspring.com> <20010523091618.P87127-100000@nausicaa.mitre.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010523091618.P87127-100000@nausicaa.mitre.org>; from jandrese@mitre.org on Wed, May 23, 2001 at 09:20:51AM -0400 From: void Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 23, 2001 at 09:20:51AM -0400, Andresen,Jason R. wrote: > > Why is knowing the file names cheating? It is almost certain > that the application will know the names of it's own files > (and won't be grepping the entire directory every time it > needs to find a file). With 60,000 files, that would have the application duplicating 60,000 pieces of information that are stored by the operating system. Operations like open() and unlink() still have to search the directory to get the inode, so there isn't much incentive for an application to do that, I think. -- Ben "An art scene of delight I created this to be ..." -- Sun Ra To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message