From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id F1D2C3858CDA for ; Thu, 29 Dec 2022 20:22:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F1D2C3858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [10.0.0.11] (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id E9A451E0D3; Thu, 29 Dec 2022 15:22:31 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1672345352; bh=S1g52fZWxnK3b2wH69G7ICgD+SM219M8JNDYnRT2kK4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eh1YHNa6cLtdMra0Y1uFA38JomiX5h92AOiHOLBfzpUL93hdv1Vmzlvw9CZGWD22c SzZ2hpFvXA9Ot4th+Z5mHPMLB0tjtmeywZAIwZTgZBzyY/LBz0WKsweIRlrGGwzyEj YF+x5ef/dHtEXY5lqENkFy4p5fS/4jqFPcEIjE3c= Message-ID: <587b899f-0f93-530a-7313-d4e1f9e501b9@simark.ca> Date: Thu, 29 Dec 2022 15:22:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: Two observations using GDB 13 snapshot Content-Language: en-US To: Eli Zaretskii , Tom Tromey Cc: gdb-patches@sourceware.org, luis.machado@arm.com 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> From: Simon Marchi In-Reply-To: <83wn6a6n21.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 12/29/22 14:13, Eli Zaretskii via Gdb-patches wrote: >> From: Tom Tromey >> Cc: Tom Tromey , gdb-patches@sourceware.org, >> luis.machado@arm.com >> Date: Thu, 29 Dec 2022 11:17:27 -0700 >> >> I wonder if just randomly interrupting gdb a few times during that 2 >> minutes and doing a "bt" would be more informative. > > Done, see the attached. > It looks like we spend a lot of time sorting the vector of index entries. We spend a lot of time in tolower. Googling a bit, it looks like tolower can be slow on Windows when a locale (other than "C") is used: https://stackoverflow.com/questions/36686381/windows-c-runtime-toupper-slow-when-locale-set https://bugs.php.net/bug.php?id=45265 Simon