From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29846 invoked from network); 16 Jun 2022 16:19:51 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 16 Jun 2022 16:19:51 -0000 Received: (qmail 11946 invoked by uid 550); 16 Jun 2022 16:19:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 11914 invoked from network); 16 Jun 2022 16:19:48 -0000 X-Virus-Scanned: SPAM Filter at disroot.org Date: Thu, 16 Jun 2022 22:19:24 +0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1655396369; bh=r7vz2CnG/hGeH4fvGe+/j49/SHBrV6WdQAN576hMr50=; h=Date:From:To:Subject:References:In-Reply-To; b=f+U2XY073egRa29eh9F0zkYgsC1bPj4ks6oNCFvt8Nd9s80UXww5Mfg/I3MAwPq4D 0UlNJdYwW1iHDBzfWI0tjoWixcrqhVy9mHC0MJvJENA4FSmYTdF1ZksGt0YFxoeyxt d+3iAHmaVg08ykdo3rG/7sDhEgG/1AsYF4HHL82X5gxL8qku54vM+Ji0TG7zLzl8RN c2aWAzbWqn4FzYT5TYRCpjHlDsrNKO84vUtYnou6kJwRQ5x/HGCQkwfvLKHMHTX10F xMBkGvg5TWcFE/OyhW69EkbdgGeWbHrcMqYym3UJP+dQ1vZbSFy1OI18Q21dAmB6s4 X9skYMS2noc+A== From: NRK To: musl@lists.openwall.com Message-ID: <20220616161924.vdkujlgyrh4aebq7@gen2.localdomain> References: <20220609203426.GE7074@brightrain.aerifal.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220609203426.GE7074@brightrain.aerifal.cx> Subject: Re: [musl] 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