|
|
Message-ID: <CANtdasS0q8Guh2UJhtA9iX8VG8i7=uP57wX90+sC5ub1KZvWOQ@mail.gmail.com> Date: Fri, 22 May 2026 11:59:34 -0700 From: Justine Tunney <jtunney@...il.com> To: Rich Felker <dalias@...c.org> Cc: musl@...ts.openwall.com Subject: Re: [PATCH] Make qsort 50% faster I'm sorry to hear that. Your work on Musl Libc has been very helpful to my projects. It makes me sad I won't have the opportunity to give anything back. Either way, anyone who wants musl qsort() to go 1.5x to 3x faster is still welcome and encouraged to use my patch. On Fri, May 22, 2026 at 10:13 AM Rich Felker <dalias@...c.org> wrote: > > On Fri, May 22, 2026 at 08:14:18AM -0700, Justine Tunney wrote: > > Yes the musl build system passes the -ffreestanding flag which implies > > -fno-builtin. So Musl could solve this by simply adding the following > > to its Makefile: > > > > obj/src/stdlib/qsort.lo: src/stdlib/qsort.c $(GENH) $(IMPH) > > $(CC) $(filter-out -ffreestanding,$(CFLAGS_ALL)) -c -o $@ $< > > > > I'm happy to mail out a v2 patch to this list which includes the above > > change. Or I could modify the code to just use __builtin_memcpy. I > > prefer to not write non-standard source, but it's a feature that's > > been available since GCC 3.0 (2001) and is supported by Clang too. > > No, that would not be an appropriate way to do this. > > But on a more fundamental level, you are not someone I'm comfortable > with having involved in our project. > > Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.