From owner-freebsd-fs@FreeBSD.ORG Wed Jun 8 08:03:12 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F9B516A41C; Wed, 8 Jun 2005 08:03:12 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E1F943D53; Wed, 8 Jun 2005 08:03:11 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j58834Dp000676; Wed, 8 Jun 2005 11:03:04 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) by orion.daedalusnetworks.priv (8.13.3/8.13.3) with ESMTP id j58834Qj001300; Wed, 8 Jun 2005 11:03:04 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by orion.daedalusnetworks.priv (8.13.3/8.13.3/Submit) id j58834Zc001299; Wed, 8 Jun 2005 11:03:04 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Wed, 8 Jun 2005 11:03:04 +0300 From: Giorgos Keramidas To: Dag-Erling Sm?rgrav Message-ID: <20050608080304.GB1226@orion.daedalusnetworks.priv> References: <17059.7150.269428.448187@roam.psg.com> <42A4D5D0.9040500@elischer.org> <42A59367.6060307@centtech.com> <20050607175242.D61131@fledge.watson.org> <86ll5lmhs3.fsf@xps.des.no> <20050608074613.GA979@orion.daedalusnetworks.priv> <86zmu1l223.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86zmu1l223.fsf@xps.des.no> Cc: freebsd-fs@freebsd.org, Randy Bush , FreeBSD Current , Robert Watson , Julian Elischer , Eric Anderson Subject: Re: you are in an fs with millions of small files X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 08:03:12 -0000 On 2005-06-08 09:50, Dag-Erling Sm?rgrav wrote: > Giorgos Keramidas writes: > > Is there a better way to sort a linked list (not necessarily a > > singly-linked list, like the one fts_link is used for). > > Don't build a linked list to begin with. Hehe. Exactly. > The comparison function is known at the time the directory entries are > read, so it should be a simple matter to read them into a red-black > tree instead of a singly- linked list. I'm working on a patch. Thanks :)