From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8610 invoked by alias); 9 Jun 2019 15:42:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8591 invoked by uid 89); 9 Jun 2019 15:42:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=wheel, HX-Languages-Length:454, our X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Jun 2019 15:42:11 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:32979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hZzxR-0008S6-RI; Sun, 09 Jun 2019 11:42:09 -0400 Received: from [176.228.60.248] (port=3067 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hZzxR-0003hv-B9; Sun, 09 Jun 2019 11:42:09 -0400 Date: Sun, 09 Jun 2019 15:42:00 -0000 Message-Id: <83h88ybwab.fsf@gnu.org> From: Eli Zaretskii To: Shawn Landden CC: gdb-patches@sourceware.org In-reply-to: <20190609151704.16061-1-shawn@git.icu> (message from Shawn Landden on Sun, 9 Jun 2019 10:17:04 -0500) Subject: Re: [PATCH] Fix slow and non-deterministic behavior of isspace() and tolower() References: <20190609151704.16061-1-shawn@git.icu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-06/txt/msg00188.txt.bz2 > From: Shawn Landden > Cc: Shawn Landden > Date: Sun, 9 Jun 2019 10:17:04 -0500 > > I was getting 8% and 6% cpu usage in tolower() and isspace(), > respectively, waiting for a breakpoint on ppc64el. > > Also, gdb doesn't want non-deterministic behavior here. Instead of inventing our own wheel, how about using the Gnulib's c-ctype module?