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

From: Giorgos Keramidas <keramida_at_freebsd.org>
Date: Wed, 8 Jun 2005 11:03:04 +0300
On 2005-06-08 09:50, Dag-Erling Sm?rgrav <des_at_des.no> wrote:
> Giorgos Keramidas <keramida_at_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.

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 :)
Received on Wed Jun 08 2005 - 06:03:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:36 UTC