From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 88E09385840D for ; Tue, 3 Jan 2023 19:45:36 +0000 (GMT) Received: by mail-wm1-x334.google.com with SMTP id m26-20020a05600c3b1a00b003d9811fcaafso17880215wms.5 for ; Tue, 03 Jan 2023 11:45:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uMrHFCNHscbB0/yowv9jrjI8S+lyuxWyBPAGFUyOwwM=; b=DUM1FLicccr5zcDnAkPx59leJ8mQzNNoxDdPRrbhfgK4ZeulUIO3L08s+Ix4xKswzf bC3350XmPw0wkTVCsBZnN1qkyTTxTk8PR8ISSNzOJRPa6i7cWaVRtvU7JKZ2araLOocq aEJUybSkfi+aoFSZ7uvdnWyWKF8bi3OWN9I0UWA1ugjZGE0t4cVdZU/rsVEl1Ywa0NUp 5OqhJkYJRuNRtlTYz1QhI3adhYTVUtZQxSOpUfOMwj5tB6a6Ox1W/qwUEsDDPklRnPBo iYWao5AcClD36InR1jXaWujRZhZLBdUikXtfbdsyLXLItHZ7RgYYU1oEjsbOZ83phFxW jxuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uMrHFCNHscbB0/yowv9jrjI8S+lyuxWyBPAGFUyOwwM=; b=B281BC21pw9lNcVmpFJSVM3RjeWkVPrGq3ID4J4fNANCz0k4s+4iOa0nq2kd+AN0hg hOlq9Thil3jwnEq3nXtRzgapZ5lNGCzRKcPCJjjBbV6WBMsOlF1Fpz92fPkLwYlZrAkb pqp+nMcSIVAMdGol/Rz6t0y1+saKO+QZCwPi0jT8KcoVO52InEV4NOhGG5UadS4urCz/ Dv3/HdgJHa+ck3tQUeuVAcuzl3SG3Ihlm7TCgQFi1xdvX6I2Cs4em7sxz/uGrMSNwQtH ruKZT0aw8GEiwrSo+T2m39qXDuMbKO/TktXEWMeMOeUrYKLGYnb9m3+KkuVPp9r51jiQ nsUQ== X-Gm-Message-State: AFqh2kqE0VAG2t4ZTNqwcXbOYkcBGoguuy74milxUSQ/IkfIb36mGeW9 QfAsCOm5XRaDz/jjkxykQODDKE/9iEJ9NSVI4eZ39A== X-Google-Smtp-Source: AMrXdXuGZXw7jEOPxzKvPjGY4uiFIoWDAlPprVVpP42jioMWL1qAmRkxFLletU5nbP3dHXNIMJvdmcv0auYzkl+Fjyo= X-Received: by 2002:a05:600c:4aa8:b0:3d0:69f4:d3d0 with SMTP id b40-20020a05600c4aa800b003d069f4d3d0mr1769047wmp.93.1672775135350; Tue, 03 Jan 2023 11:45:35 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <835ydt6jzw.fsf@gnu.org> From: Christian Biesinger Date: Tue, 3 Jan 2023 14:44:56 -0500 Message-ID: Subject: Re: Two observations using GDB 13 snapshot To: Eli Zaretskii Cc: Simon Marchi , tom@tromey.com, gdb-patches@sourceware.org, luis.machado@arm.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-18.3 required=5.0 tests=BAYES_00,DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, Dec 30, 2022 at 9:32 AM Eli Zaretskii via Gdb-patches wrote: > > > Date: Thu, 29 Dec 2022 15:22:31 -0500 > > Cc: gdb-patches@sourceware.org, luis.machado@arm.com > > From: Simon Marchi > > 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 > > 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? Christian