Re: [PATCH 2/2] x86: get more exact nr_irqs

From: H. Peter Anvin
Date: Mon Jan 04 2010 - 14:33:50 EST


On 01/04/2010 11:16 AM, Eric W. Biederman wrote:
>
> If we care about memory use efficiency let's replace irq_desc_ptrs
> with a rbtree or a radix_tree. Something that moves the memory use
> penalty onto those machines that have a lot of irqs.
>

rbtree doesn't make much sense for something that is addressed by index,
and doesn't need to answer questions of the form "give me the highest
member <= X". A hash table or radix tree makes sense, depending on the
expected sparseness of the index.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/