Re: you are in an fs with millions of small files

[ Available lists | Index of freebsd-current | Month of Jun 2005 | Week of 8 Jun 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dag-Erling Smørgrav <des@des.no>
Date
8 Jun 2005 07:50:50
Subject
Re: you are in an fs with millions of small files
Message-ID
86zmu1l223.fsf@xps.des.no


[ Hide this part ]
Giorgos Keramidas <keramida@freebsd.org> 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. 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.

DES
--
Dag-Erling Smrgrav - des@des.no



Elapsed time: 0.180 seconds