Re: [hackers] [dmenu] follow-up fix: add -D_GNU_SOURCE for strcasestr for some systems || Hiltjo Posthuma

From: NRK <nrk_AT_disroot.org>
Date: Mon, 7 Feb 2022 19:07:29 +0600

On Mon, Feb 07, 2022 at 01:36:24PM +0100, Hiltjo Posthuma wrote:
> glibc 2.1 was released in 1999:
> https://sourceware.org/glibc/wiki/Glibc%20Timeline
>
> OpenBSD 3.8 was released in 2005.

The function is also available on musl and uclibc. Although on musl the
implementation[0] is same as dmenu's cisstrstr(), so the performance
improvement will be system dependent.

But I guess it's safe to assume that someone who's running musl doesn't
exactly care about squeezing the most performance out of his system.

[0]: https://git.musl-libc.org/cgit/musl/tree/src/string/strcasestr.c

- NRK
Received on Mon Feb 07 2022 - 14:07:29 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 07 2022 - 14:12:31 CET