From: "Mike Ralphson" <mike.ralphson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Brian Downing" <bdowning-oU/tDdhfGLReoWH0uzbU5w@public.gmane.org>
Cc: "Johannes Schindelin"
<Johannes.Schindelin-Mmb7MZpHnFY@public.gmane.org>,
"Junio C Hamano"
<gitster-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>,
"Steffen Prohaska" <prohaska-wjoc1KHpMeg@public.gmane.org>,
git-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
msysgit-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH] compat: Add simplified merge sort implementation from glibc
Date: Tue, 5 Feb 2008 10:19:32 +0000 [thread overview]
Message-ID: <e2b179460802050219h58f086fer77792e3f06d74ff4@mail.gmail.com> (raw)
In-Reply-To: <20080203045033.GL26392-oU/tDdhfGLReoWH0uzbU5w@public.gmane.org>
On Feb 3, 2008 4:50 AM, Brian Downing <bdowning-oU/tDdhfGLReoWH0uzbU5w@public.gmane.org> wrote:
> On Sun, Feb 03, 2008 at 02:37:27AM +0000, Johannes Schindelin wrote:
> > I should add that this is a stripped-down version of glibc's sort() (yes,
> > the GPL of glibc allows that we rip it, for all you license wieners out
> > there).
> >
> > AFAIR the discussion about the different implementations of a sort
> > algorithm boiled down to one particular implementation being quicker than
> > what this patch has, but with dubious licensing, and the glibc
> > implementation without the modifications present in this patch being
> > slower.
> >
> > So I would like this to go in, evidently, if only as a starting point for
> > people to play with sorting algorithms, to find the one which is optimal
> > for our general use (we have quite some uses where we put in _almost_
> > sorted data, which seems to be the worst-case for many sorting
> > algorithms).
>
> If this is what I am thinking of, the sort of dubious licensing was
> faster than glibc's quicksort. This patch, however, is simplified from
> glibc's mergesort (which is what glibc uses for the qsort() call except
> for very large arrays), and was determined to be faster than both.
>
> See:
>
> http://groups.google.com/group/msysgit/browse_frm/thread/3c2eb564b9d0a994
>
> and the links from that thread for more information.
Tested-by: Mike Ralphson <mike.ralphson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Many thanks Brian, I held off from submitting your patch to git.git
because of the 1.5.4 freeze. I'll retest my other candidate qsort
implementations and report back. For now this makes git look good on
AIX. It would be good to have feedback from users of older versions of
Solaris too.
Once the final patch is in, I'll drop some queued AIX Makefile patches on top.
Cheers, Mike
next prev parent reply other threads:[~2008-02-05 10:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 1:11 [PATCH] compat: Add simplified merge sort implementation from glibc Brian Downing
[not found] ` <20080203011130.GK26392-oU/tDdhfGLReoWH0uzbU5w@public.gmane.org>
2008-02-03 2:37 ` Johannes Schindelin
2008-02-03 4:50 ` Brian Downing
[not found] ` <20080203045033.GL26392-oU/tDdhfGLReoWH0uzbU5w@public.gmane.org>
2008-02-03 21:09 ` Johannes Schindelin
2008-02-05 10:19 ` Mike Ralphson [this message]
2008-02-03 6:22 ` Junio C Hamano
2008-02-04 0:05 ` Edgar Toernig
[not found] ` <20080204010552.03541642.froese-Mmb7MZpHnFY@public.gmane.org>
2008-02-04 2:46 ` Brian Downing
[not found] ` <1202209509-13760-1-git-send-email-bdowning@lavos.net>
2008-02-05 14:11 ` Brian Downing
2008-02-05 20:02 ` Junio C Hamano
2008-02-05 21:07 ` Brian Downing
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=e2b179460802050219h58f086fer77792e3f06d74ff4@mail.gmail.com \
--to=mike.ralphson-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=Johannes.Schindelin-Mmb7MZpHnFY@public.gmane.org \
--cc=bdowning-oU/tDdhfGLReoWH0uzbU5w@public.gmane.org \
--cc=git-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=gitster-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org \
--cc=msysgit-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=prohaska-wjoc1KHpMeg@public.gmane.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;
as well as URLs for NNTP newsgroup(s).