From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105110 invoked by alias); 6 Jul 2015 14:42:40 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 103372 invoked by uid 89); 6 Jul 2015 14:42:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f177.google.com MIME-Version: 1.0 X-Received: by 10.194.178.201 with SMTP id da9mr51571505wjc.139.1436193755758; Mon, 06 Jul 2015 07:42:35 -0700 (PDT) In-Reply-To: <002a01d031b3$51a020a0$f4e061e0$@com> References: <002a01d031b3$51a020a0$f4e061e0$@com> Date: Mon, 06 Jul 2015 14:42:00 -0000 Message-ID: Subject: Re: [PATCH][AArch64] Optimize strlen From: Marcus Shawcroft To: Wilco Dijkstra Cc: GNU C Library Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-07/txt/msg00149.txt.bz2 On 16 January 2015 at 17:39, Wilco Dijkstra wrote: > Optimize the strlen implementation by using a page cross check and a fast check > for nul bytes which reverts to separate loop when a non-ASCII char is encountered. > Speedup on test-strlen is ~10%, long ASCII strings are processed ~60% faster, > and on random tests it is ~80% better. > > ChangeLog: > > 2015-01-16 Wilco Dijkstra > > * sysdeps/aarch64/strlen.S (strlen): Optimize strlen. OK /Marcus