|
Message-ID: <20220616161924.vdkujlgyrh4aebq7@gen2.localdomain> Date: Thu, 16 Jun 2022 22:19:24 +0600 From: NRK <nrk@...root.org> To: musl@...ts.openwall.com Subject: Re: hostname is using a case sensitive search in function name_from_hosts On Thu, Jun 09, 2022 at 04:34:27PM -0400, Rich Felker wrote: > strcasestr isn't a good match here, because it's quadratic time and > would be potentially quite slow (depending on file contents). It's > also not in a usable namespace, and is something of a junk function we > included for questionable reasons. A bit off-topic, but is there any desire to improve the strcasestr performance? If there is, then I can supply the patch as I was playing around with it a couple weeks ago. - NRK
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.