From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ELDwKwqGtGOqvw4AWB0awg (envelope-from ) for ; Tue, 03 Jan 2023 14:46:18 -0500 Received: by simark.ca (Postfix, from userid 112) id B001B1E222; Tue, 3 Jan 2023 14:46:18 -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=lMdI3iPJ; 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=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.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 427DE1E112 for ; Tue, 3 Jan 2023 14:46:18 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6C2BF3858C27 for ; Tue, 3 Jan 2023 19:46:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C2BF3858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672775177; bh=uMrHFCNHscbB0/yowv9jrjI8S+lyuxWyBPAGFUyOwwM=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=lMdI3iPJaTVI3ON1RtwMgNuImzySGI7X6JvHY/JK8Uma0Sn0ooTtV27O1cmcH7g8v ufj6B1hBMP9+M5dHnNeqcYRPrFMeLW6yNiJdO91I/dcuC4bTWpLzQestCoFTQ/dBEX 9DY5OSAHQp/1TkrjjBCKkre7A5Ls/kPnhamHJVNE= 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) 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> 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-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: Christian Biesinger via Gdb-patches Reply-To: Christian Biesinger Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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