From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6FHOGsLYZmiaeioAWB0awg (envelope-from ) for ; Thu, 03 Jul 2025 15:23:46 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=XbvRiMg1; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 69B911E11E; Thu, 3 Jul 2025 15:23:46 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 EFD691E0C2 for ; Thu, 3 Jul 2025 15:23:45 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 91A553852126 for ; Thu, 3 Jul 2025 19:23:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91A553852126 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=XbvRiMg1 Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 36AC7385E825 for ; Thu, 3 Jul 2025 19:23:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36AC7385E825 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 36AC7385E825 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1751570594; cv=none; b=kTlg7P3LvYzVpQImo22P91hifkXhlQgYBnIyIPxaQhtDLkKmuV+Gs+KQ8np6+2n3eol6VrgZxIpUsN88pWm4HCn/EsZMIc0aZ7694GVdOlb0iE4ODCPo2IJ4ZVbY2XuO3ePxExpmuvEDO4rDNn0pQudf9Ga/PfPj4EFJXOC2jCw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1751570594; c=relaxed/simple; bh=2BA9Dca+UpqZbkHJf3rCoe/ba+quteCpgwOR5U8M6nw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=OTTk629oRUmIHt0fBNgSH4/lm05sVn8Jr4T+Tm6lgJulnEG9mQLlg4qORfLr2sQihqciQCj4V9lfwIVuh4QvmOL+ktuKkmEmCITHFHpbkNDwOhOnIaLLjz7xsSKjKVcNI32bpCEYZGljKhkMh5Lafo1BTxadofGd4DdHhZS1TBE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36AC7385E825 Received: from eig-obgw-5007a.ext.cloudfilter.net ([10.0.29.141]) by cmsmtp with ESMTPS id XO2Wu6iTHVkcRXPWbuTl8o; Thu, 03 Jul 2025 19:23:13 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id XPWauWFNcDFILXPWbuGqJ8; Thu, 03 Jul 2025 19:23:13 +0000 X-Authority-Analysis: v=2.4 cv=YtIJRZYX c=1 sm=1 tr=0 ts=6866d8a1 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Wb1JkmetP80A:10 a=ItBw4LHWJt0A:10 a=dzWzf_mpAAAA:8 a=qe3KvmlAVdpBNaS6YZYA:9 a=b4DR9a7p2ZdsqdHBznES:22 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IJ8SpPgkNCwWD9tZ/bY5xGHUbOO0iJDzsH7S7L+ymPs=; b=XbvRiMg1GpmoIukWVE3pKwIWFP GzShIlVX3CdIDMJE+l+GMAvH0RWSEwv638BGZGPeyNnEokcyPg7Vetzej2Xxo0Q67CsqBJlM71fIZ qt+T18xp/uNdhpPJi4ucmJmY2; Received: from 97-118-59-152.hlrn.qwest.net ([97.118.59.152]:51904 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1uXPWa-00000002Woh-08tH; Thu, 03 Jul 2025 13:23:12 -0600 From: Tom Tromey To: Simon Marchi Cc: Simon Marchi , Tom Tromey , Simon Marchi , gdb-patches@sourceware.org Subject: Re: [PATCH 3/6] gdbsupport: use dynamic partitioning in gdb::parallel_for_each In-Reply-To: <3a7fcb84-773c-4c08-ac59-23bd6e5a508e@simark.ca> (Simon Marchi's message of "Thu, 26 Jun 2025 15:27:49 -0400") References: <20250505201548.184917-1-simon.marchi@efficios.com> <20250505201548.184917-3-simon.marchi@efficios.com> <87tt4jjy13.fsf@tromey.com> <46f028fd-14f8-49a5-afc1-d6661d6f84ac@polymtl.ca> <2047e4f3-49d3-4dde-991a-8e22bd80c6ef@polymtl.ca> <3a7fcb84-773c-4c08-ac59-23bd6e5a508e@simark.ca> X-Attribution: Tom Date: Thu, 03 Jul 2025 13:23:05 -0600 Message-ID: <87plehulie.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.118.59.152 X-Source-L: No X-Exim-ID: 1uXPWa-00000002Woh-08tH X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-118-59-152.hlrn.qwest.net (bapiya) [97.118.59.152]:51904 X-Source-Auth: tom+tromey.com X-Email-Count: 7 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfAw5Q1BBo1Grk1SQ7qtubaKTQJM6foSfkIf8pBCLHwqFVrcCemJFCxYba+SqJxl7/KW52EkXM31Gq6x8Psj4G4/zUtKLVkPTNgt6EQytpaj70VjdwO98 w+aLRt/BfrqZfQO14pU5dtzlqnq6yE0/oUD8+4M6Bg7QPCwaurS0uMXi9GvVT5XjyJF1A8Qz7wAHyFOSmbD/vmTqxb16wDMa+CU= 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 >>>>> "Simon" == Simon Marchi writes: Sorry for the delay on this. My time is split these days and so I'm not keeping up with gdb quite as frequently. Simon> I have thought about this problem some more, and I discussed this with Simon> my team. I still think that the functor approach is the only one that Simon> relatively cleanly meets the various requirements: Simon> - be able to run a per-worker initialize step Simon> - be able to keep some per-worker data for the duration of the for-each Simon> - be able to run a per-worker finalize step IMO let's just go with your original plan. It seems clear & straightforward. I don't like the wordiness so much but I tend to think the other alternatives are less clear. This seems like another area that coroutines would clear up. I have high hopes for those removing a lot of extraneous classes and turning them into local variables. No idea when we can adopt C++20 though. Tom