From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id CA36E396DC0A for ; Fri, 13 May 2022 18:13:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CA36E396DC0A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.91,223,1647331200"; d="scan'208,217";a="75853293" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 13 May 2022 10:13:05 -0800 IronPort-SDR: 659HJzvnuuU4nwuZn5Usu1UYRHsPBzT/Mzu2lWGG+a73Ll9A6BWDVteC/azgKNc6abfpMniklr 3XIWD9udraXtpE+KF7BOMtX2l+RT6iYJJGZM/G8V997h2YPFjR8fnYftLVr6fRUu8tQ0yGRTHO ad7n3jtdQVb7VIVKjHmqs2g2oK8kqHN7jUAvYoxYssh/8qA4zY/Zcny9uESMeFgPh17fv+bu/r pfR/x28ywSj0p55vKrqoLQOuHaPOfoX/pzp8S5EGjG7u1xVzfaCR3AJiXctpSJxiQEec84cphu qOU= From: "Foelsche, Peter" To: "gcc-help@gcc.gnu.org" Subject: compile time of code using long tuples Thread-Topic: compile time of code using long tuples Thread-Index: Adhm9RVUx2OTamPHQBOr+vUx0ldUNA== Date: Fri, 13 May 2022 18:13:02 +0000 Message-ID: <7c754a932bd94cbf86fa20df7b611d2c@mentor.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [147.34.91.1] MIME-Version: 1.0 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, HTML_MESSAGE, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 18:13:07 -0000 I'm the author of some software which dumps out C++ code to be compiled wit= h g++. This code sometimes contains many different and many long tuples. I deduced= that long tuples cause rather long compile times. I already wrote some compression, which collects identical entries in such = a tuple and moves them into an array. But this compression reduces (run-time) performance. I already wrote different tuple implementations, and one of the compiles mu= ch faster than the regular provided std::tuple. What could be the criterium for such a tuple implementation, which makes g+= + take more or less compile time assuming the same code using this tuple? Peter