From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0atJEjAv4mpxpj4AWB0awg (envelope-from ) for ; Wed, 28 Oct 2026 13:21:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1793208112; bh=7BI9caBxYnKOMxEq7F6kRfb9VC9C7lxfSpFOTxpb9Ms=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ED7GvnWOINqm9/nrFbuC3Gmef/c3ja85vfZag3crznA8NoTJb5PlZZSpF5aSmMzMH io8bLbmxfNV6zVDJtqFr/16WFXV2LixLkko9rUsXNfEMtuBG7M+wP2nVSAgbgUqUhW ITPFDXWQMWAwp21Dke757+SLe+Ueb05LYaFe0KGw= Received: by simark.ca (Postfix, from userid 112) id 42EC2378002; Wed, 28 Oct 2026 13:21:52 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=tGyGaT7b; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A63B81E007 for ; Wed, 28 Oct 2026 13:21:51 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E901B4BA23CE for ; Wed, 28 Oct 2026 17:21:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E901B4BA23CE Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=tGyGaT7b Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 546D04BA5433 for ; Wed, 28 Oct 2026 17:21:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 546D04BA5433 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 546D04BA5433 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793208086; cv=none; b=oo6RB3gwuQv5fo4F6mVqP7xMAjni8Dxa9FzRLbuvf5+3MyiZt49HVpOmCXn0pNvvQLlhJaeHAKyIbNb9Q/cMtj3Et3LQJNBG7yLnTlXanC6GOK2xw28NOeM33ShF5rpQKrcBwNv7CstV14XvrSDZjLsscJYaH7ADeOzluddfDCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793208086; c=relaxed/simple; bh=7BI9caBxYnKOMxEq7F6kRfb9VC9C7lxfSpFOTxpb9Ms=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Eksrg3wOk2SbJSyWmyiE8qHtu+nzMuuhJNzbpu0PB5sZ0OgzaSTVfPVNstuzGaLDdwf8ktSCPxDfsJ6yqAehM0Mu2SECpEFv14YqGPvyA1sXWk000MLDcpYPDqgifun9vw6ZmmmioSCN3fZGkS8AQQLcXcORf1JsxAEkt+ijiiY= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=tGyGaT7b DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 546D04BA5433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1793208085; bh=7BI9caBxYnKOMxEq7F6kRfb9VC9C7lxfSpFOTxpb9Ms=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tGyGaT7bmgOiU3uuun3TV3JETi9GZuQrAbgqpRuCvtRLdolPTrvEJEdRtPuhv2VqN twf7Uov4Rks78xglq/S+Kd5T507/ihH0L4Wmv/1DMbM0vpCqsw5VnwEmCE/LSipXCk ZiJJ7IboqHmy6F/ALDBr2f9WsDtZt83dNliwHbog= Received: by simark.ca (Postfix) id C3E471E007; Wed, 28 Oct 2026 13:21:24 -0400 (EDT) Message-ID: Date: Wed, 28 Oct 2026 13:21:24 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdb/dwarf2: short-circuit cooked_index_entry::compare on identical strings To: Tom Tromey , Simon Marchi Cc: gdb-patches@sourceware.org References: <20261027204739.336896-1-simon.marchi@efficios.com> <87ik2lpzml.fsf@tromey.com> Content-Language: fr From: Simon Marchi In-Reply-To: <87ik2lpzml.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 10/28/26 12:18 PM, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi writes: > > Simon> When asked to compare a string pointer with itself, we don't need to do any > Simon> work, we know they are equal. Return 0 right away when both pointers are > Simon> equal. > > Ok. > Approved-By: Tom Tromey > > Tom Pushed, thanks. Simon