From: Andi Kleen <andi@firstfloor.org>
To: Arjan van de Ven <arjan@infradead.org>
Cc: "Peter Teoh" <htmldeveloper@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
"Sam Ravnborg" <sam@ravnborg.org>
Subject: Re: A question sort_main_extable()
Date: Sun, 23 Nov 2008 20:45:57 +0100 [thread overview]
Message-ID: <87ej12i5u2.fsf@basil.nowhere.org> (raw)
In-Reply-To: <20081120214717.1a02a9af@infradead.org> (Arjan van de Ven's message of "Thu, 20 Nov 2008 21:47:17 -0800")
Arjan van de Ven <arjan@infradead.org> writes:
>
> we used to do this but it was a pain and extremely fragile. Runtime
> sorting makes it very robust at least.
It's not only extremly fragile, but just broken with out of line
section which gcc also generates these days.
>
> The sort is really quick though; I've spent a lot of time on boot time
> and this guy never showed up for me.
If you really wanted to speed it up you could actually just switch
over to a bubble sort. It's typically the best algorithm for nearly
already sorted input data, which this is.
But then as you say it's not worth it.
-Andi
--
ak@linux.intel.com
prev parent reply other threads:[~2008-11-23 19:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 5:42 A question sort_main_extable() Peter Teoh
2008-11-21 5:47 ` Arjan van de Ven
2008-11-21 6:43 ` Peter Teoh
2008-11-23 19:45 ` Andi Kleen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ej12i5u2.fsf@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=arjan@infradead.org \
--cc=htmldeveloper@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox