From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iCv0KoyNtGNmwg4AWB0awg (envelope-from ) for ; Tue, 03 Jan 2023 15:18:20 -0500 Received: by simark.ca (Postfix, from userid 112) id AB2A51E222; Tue, 3 Jan 2023 15:18:20 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Q38/vyB8; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 54C691E0D3 for ; Tue, 3 Jan 2023 15:18:20 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6185A3858D35 for ; Tue, 3 Jan 2023 20:18:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6185A3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672777097; bh=sttgWB+ZOoG37d+TjhCYcwNAJCCSn3T9OzlxQxqZg80=; h=Date:To:Cc:In-Reply-To:Subject:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=Q38/vyB8EV+EZndFfoP4SO/Mu2PAhjnxahkQUuB0WQzGxxbgCUyxS6NzvY5mx/j23 N2AY4kV96G7IBGvkN5m/FNbPMPCE531YvXikRA1TDN8KYkYoVwbVL9OZ+BmQcmbcBL SAVM6CSC9H7nYvIEAhCTbR9UVSgokzugF5vHKOgI= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 8F9E23858D1E for ; Tue, 3 Jan 2023 20:17:57 +0000 (GMT) Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCnjO-0000z4-Rd; Tue, 03 Jan 2023 15:17:55 -0500 Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCnjO-0005wZ-4M; Tue, 03 Jan 2023 15:17:54 -0500 Date: Tue, 03 Jan 2023 22:18:03 +0200 Message-Id: <83wn63z81w.fsf@gnu.org> To: Christian Biesinger Cc: simark@simark.ca, tom@tromey.com, gdb-patches@sourceware.org, luis.machado@arm.com In-Reply-To: (message from Christian Biesinger on Tue, 3 Jan 2023 14:44:56 -0500) Subject: Re: Two observations using GDB 13 snapshot References: <83h6xugc5v.fsf@gnu.org> <58b64bf8-90b6-d080-c060-d03761501199@arm.com> <83k02neezy.fsf@gnu.org> <835ye7e9jw.fsf@gnu.org> <87h6xrks77.fsf@tromey.com> <83mt7idacj.fsf@gnu.org> <87fsd4elb2.fsf@tromey.com> <83o7rs4qmg.fsf@gnu.org> <87cz84dasj.fsf@tromey.com> <835ydw20bw.fsf@gnu.org> <87wn6bbi5m.fsf@tromey.com> <83sfgz8m9i.fsf@gnu.org> <87o7rnb0ya.fsf@tromey.com> <83a6368chf.fsf@gnu.org> <87k02aaxc8.fsf@tromey.com> <83wn6a6n21.fsf@gnu.org> <587b899f-0f93-530a-7313-d4e1f9e501b9@simark.ca> <835ydt6jzw.fsf@gnu.org> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > From: Christian Biesinger > Date: Tue, 3 Jan 2023 14:44:56 -0500 > Cc: Simon Marchi , tom@tromey.com, gdb-patches@sourceware.org, > luis.machado@arm.com > > > > https://stackoverflow.com/questions/36686381/windows-c-runtime-toupper-slow-when-locale-set > > > https://bugs.php.net/bug.php?id=45265 > > > > I couldn't see any numbers there about the performance of tolower > > itself, i.e. how many ms per call does it take on Windows vs glibc. > > But if someone can show a patch to try to eliminate the calls to > > tolower, I can try and see if it affects the processing time in this > > scenario. > > Seems like that could be tested by running gdb with LANG=C and/or > commenting out the setlocale calls in gdb/main.c? Setting LANG in the environment doesn't have any effect on Windows, since the Windows version of setlocale is insensitive to LANG and LC_* environment variables.