Re: [PATCH RFC 1/5] scripts: Add sortextable to sort the kernel'sexception table.

From: H. Peter Anvin
Date: Sun Nov 20 2011 - 18:26:30 EST


On 11/18/2011 11:37 AM, David Daney wrote:
> From: David Daney <david.daney@xxxxxxxxxx>
>
> Using this build-time sort saves time booting as we don't have to burn
> cycles sorting the exception table.
>

If we're going to do this at build time, I would suggest using a
collisionless hash instead. The lookup time for those are O(1), but
they definitely need to be done at build time.

-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/