Re: Two observations using GDB 13 snapshot

Simon Marchi via Gdb-patches
2022-12-29T20:22:54Z

On 12/29/22 14:13, Eli Zaretskii via Gdb-patches wrote:
>> From: Tom Tromey <tom@tromey.com>
>> Cc: Tom Tromey <tom@tromey.com>, 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