Message ID | 20240619153048.98785-1-claudiu.zissulescu-ianculescu@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <libabigail-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3129E3886C58 for <patchwork@sourceware.org>; Wed, 19 Jun 2024 15:31:32 +0000 (GMT) X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id A32283884607 for <libabigail@sourceware.org>; Wed, 19 Jun 2024 15:31:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A32283884607 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A32283884607 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1718811087; cv=pass; b=KnVD9s1d0RoMAzobxdSrdbdweJCMjScASwuTcjPe8QcPir3hm1FotPvwk3fH1rk30PGFTFQap+zZ7Hw3Oo8b3U0AHyGe4smgOBGRJ3sBZ3xbsqdFtc+LEihwfuOCe9Iquk6wkUerqqcBZTW6iyOtRLdq5XiF0NAePIC8zmN1Z1o= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1718811087; c=relaxed/simple; bh=C9Hz5gPaITcd28FR1LENHrE5hE/Az8qoJMAHAANEobo=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Cv5eEn+RzFUyl3QVM2GOIyr3mhd71dIVEnCXCEBPindFovf/Ckp8jcGqd8Zdk0qIxmYCZIt238NC6EAINpSqsoGR8ERt/w5S6iXIMYliKYsKe+9Hr8v1PDfxTucCDtvOnK5VZHjmKqyVcbYNhYrK4Vfw3x9+m3ECEvEoxCTnVSk= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45JFBRXY026168 for <libabigail@sourceware.org>; Wed, 19 Jun 2024 15:31:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:content-transfer-encoding :content-type:mime-version; s=corp-2023-11-20; bh=I4nxaNYwRujZK/ DK/57CpYKM0rkmh3kDdEV4pfR6yfk=; b=mwP3OAcxpMa8yq9K4Qz1zrXWZzEb2O 7FLRC6eaC1snfa9pw8+KvvsjQa3j5Dz6+DAn/PH/OJQP059L8XATgd3GChyOh0+B JiIsHvqzNN3tu05Q4fyzj+VBUF9hmIVrqAs5LhzqjRVUX9SlQcjp3PhTxZplOly4 hJrXJpR8mgs0aDsnkfFec9psvFQsZVIrl9c02D5z0bKUfIJ4g69cWM5VIkrl/lp6 LmbnNT/S6w3QOdXkLGJ4QeGeeYb63bjLNPj+30shlEMyL0v96w+ScSSFOUtBjsc5 Yaj5Ae5o0NTmuOMR93jhM6fElMwhn2pM9zwpkhUGOQ6v2n5brgAM/Wjg== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yuj9n9hq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <libabigail@sourceware.org>; Wed, 19 Jun 2024 15:31:22 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 45JFOp2G029104 for <libabigail@sourceware.org>; Wed, 19 Jun 2024 15:31:21 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2049.outbound.protection.outlook.com [104.47.51.49]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ys1d9r9ud-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <libabigail@sourceware.org>; Wed, 19 Jun 2024 15:31:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dv0l+iSovG78nWTUAAVIX+ZyIA/QVKI3+a4Utsbs4HWUkmiLuutbsjlzFRcvZ30Rt8Vz3NtXRa+etnloGAGllr4f5tzWvd1tR83RM7dbCvSgccMlFYnZHrEjXFmHWxuAQZ6y3cCApAGC831oTcKpN+Zpy9bt1NKkW5OmQZnd3TLrhlxK92uA1Vn0xHHupznn7noq4B0cCR/4eI/xRiwme7cPC1/pSBv9N9oGtKFJpCg7IwOyN0lL1XGVYXAgS49Pg/uryb+PVvLn0Ao4v3PdjXlIM3cXdX9Spcv1BkJNNIfnR1YmAc7XEuiueVZMjbbeG0qIJsy+nrKTJI7CvCdkBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=I4nxaNYwRujZK/DK/57CpYKM0rkmh3kDdEV4pfR6yfk=; b=ZeSBL3mzZfsRT8klxqa3TwH9Ujf1YiRTaj7/cqlql6RuGYpblH53Ax5NMDISEiyd/mfygm/EyySFfWWG7fJ68VxqCnZrCIi725br60l+18cdK2f2Pf+aifZnmn8KX6L8iTmqS8iiGWfSZ38sjryNi5MYyfKMy2F2NL2J1/GZ6qwlnRLans/1n78q6w/CKYdOAQUOgMuC4cVEtDYRPYJFSesaqTk4ZGcxAtR5Hs64G+QjSmhf8FwVPbbEyMjFp5dZeOY35fioObDPGe7gRUrrXww8ikfbGPwhn8czHBp3LxYjct4g9SA8gxybM4MhWtRZayJo7REXXmDbC5yqmtKELg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I4nxaNYwRujZK/DK/57CpYKM0rkmh3kDdEV4pfR6yfk=; b=AQLVhuT704nwKpwms/Y7ThXZYxay6qLre5rlvBZLJvV3AIQ2/Y51sK83kNCCTaUuZ3X6MSDhPMYeXUDpo7+DLR6BB+b1gmucZQN4EStQs0uqM9J6r3HQ/X3lJGLPb7lU2kVdTa5nI84Qk3q0kTzAgjClTIILdRoL0ZrgR5ehVMY= Received: from CY5PR10MB6011.namprd10.prod.outlook.com (2603:10b6:930:28::16) by SA1PR10MB7556.namprd10.prod.outlook.com (2603:10b6:806:378::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Wed, 19 Jun 2024 15:31:19 +0000 Received: from CY5PR10MB6011.namprd10.prod.outlook.com ([fe80::3aca:a3f6:e92f:782e]) by CY5PR10MB6011.namprd10.prod.outlook.com ([fe80::3aca:a3f6:e92f:782e%6]) with mapi id 15.20.7677.027; Wed, 19 Jun 2024 15:31:19 +0000 From: claudiu.zissulescu-ianculescu@oracle.com To: libabigail@sourceware.org Cc: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> Subject: [PATCH] ctf-reader: Optimize calling sorting function for functions and variables. Date: Wed, 19 Jun 2024 18:30:48 +0300 Message-ID: <20240619153048.98785-1-claudiu.zissulescu-ianculescu@oracle.com> X-Mailer: git-send-email 2.45.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR06CA0228.eurprd06.prod.outlook.com (2603:10a6:802:2c::49) To CY5PR10MB6011.namprd10.prod.outlook.com (2603:10b6:930:28::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR10MB6011:EE_|SA1PR10MB7556:EE_ X-MS-Office365-Filtering-Correlation-Id: 3beb7b88-c07d-43ce-87bf-08dc9074ddc0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|376011|1800799021|366013; X-Microsoft-Antispam-Message-Info: 2c2u212JMPQr42UHOkBELkhhDRikbhzQun7sLaOX8fSV5czWay9WxEaqKA+Ey+QY2P2Myc1WLI7ZvGUfywHMFysFpN4L2zJrZAt459roLg5S/FBFCp5OEQXToKc5c7wI2lIiPE9AB45cfiR29+n8Ez3kri05M67D8pzPhCKbi6L0dg0WTFAZd4ZnBH/LjbspIb9gqmCqiVPHUTIOMvGQN0ncYaFUkm72gSZhhRNMX2BFLkyU0P7Kcvfc4Wj2FsZxj9mFWWJGzs62+yvvvSdY4L5HCULj29N8KC4Skk3bABLH/VFwveVxfCqvpXoxDAhET2Bu4X+Em6lazB5F9XWiD4NO26g4lZlOTbWo9FU+PMTfiPLM6xBRzqJVIReaUuWMFQ6SS04cK6e6zNbPXfGAb4dqUMoggqeuuvcy66g26Gi8EctPOgsbeNVZQtAp7VzSc2WFZXYbIBLuU6CyNFAEC4mamfHK/GkvJs1a9YQAqpILRx5X//oQEYxVXiQBNZk9AbrD91/2ck0xPUqe0w2HUn+HuCVSLUT85LHB2GBNZHp55SFW0tmEHWU1qFZieSTeArAoq3JFcdbxsXJoooIPvbQn3X0w/F0KF4v5BYH/L7W1dU0Cem3b3p2BKuUX1roZ4XeUNgaOdN9oyVaiwoUkKus8dm3OX4sG3hPuI2BIy/HZGfTMHkSY415ydYs6Bd1RHI9aqeb02+IaD5ghV+BCVAPCHmSySGi/iH1cQcJPsDYaf+yit868yV2LNAwZLdGLvmyl0O5PF5Yg5Y3P+OcPU4jAV5uVUDOLa8vaStrTAV0FyS8DXjcyb1EZIGbNhIRyHcAbt8wD+gvltDuqkubLqv46ZOIExmCviFcfYy+tYiFqSXKqiVhjsKp4VbTQQMVSSSJ9wZ6xm6g2AAWanG/8wF1rMBsZXAA5XpmoMv4bSEaiBZbT70xUrpG1d/3OQuZv5CJo+sCnQ9tAh1bx5NKYWmLegibg6USLD9kXy/pwFbJgbWvATMnv60RAmHFkhZv1041XTy+Qr2K33DOvhwRPnE2IR4fS//e2uwhphiWm+R0JoTVpl6NZyIBUlnysGtJwprOlhd4Mxw2ieRrjmQTQL7KkMKNaL7urnAR/bzb7/tl+EMVkHBDT8cBZlzUzliq4CvF1pC2RxYVVUwgynvqEODAutHQTuxXQWHSkiJcgkINEGonQSqwseumbqasLOhfqw79K1fM6izGmwCX0JGW4AZDl74W+dnxllpmvZkbFCm20FpUV/U7eU+yj+kt+zM3eBAz3lJwbfSwjoboH4MkSHjlxT3aqAstkDQ6CMS2v68vu3AN14cRyoAJn3GCl+b/v X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY5PR10MB6011.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(376011)(1800799021)(366013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: otxU8HcEO8U9nEvaAsxi4g3cZzhaYxPiVzXs9uPAoenTwnPMcyQZKKXKvDgqoM0SqGSvr+MtHNseGvPCt5FiTU23ufw457Sn7Y0I4ymJNrg/FQuNLcYM8cAsm29qEyAuVOAXTaIL9Wduoa4kzUgV/yH2BU9tu3CcZTeKC5k857dB1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DMYWD5Oyz98GY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3beb7b88-c07d-43ce-87bf-08dc9074ddc0 X-MS-Exchange-CrossTenant-AuthSource: CY5PR10MB6011.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 15:31:19.1674 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Y6k5a4EHN1AMX+UeMAHeXEqUYrpnIlq60QTDct6nfdixg9KeVH3en4Os4nxFXFISbMKznce6+9j7mZkoMS8CA0baHTxjhCVi01qU/OY9ycTBDAyOnI1Fghg4MnQn61YtyfYGXApq/otfxRcx+CkhPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB7556 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-19_02,2024-06-19_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 spamscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406190116 X-Proofpoint-GUID: 95G2DVNaoZnfy5EumAoKNGkIL6QdenRk X-Proofpoint-ORIG-GUID: 95G2DVNaoZnfy5EumAoKNGkIL6QdenRk X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Mailing list of the Libabigail project <libabigail.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libabigail>, <mailto:libabigail-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libabigail/> List-Post: <mailto:libabigail@sourceware.org> List-Help: <mailto:libabigail-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libabigail>, <mailto:libabigail-request@sourceware.org?subject=subscribe> Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org |
Series |
ctf-reader: Optimize calling sorting function for functions and variables.
|
|
Commit Message
Claudiu Zissulescu-Ianculescu
June 19, 2024, 3:30 p.m. UTC
From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> Sorting the functions and variables is done twce. Once in the process_ctf_archive() and the second one, in read_corpus(). However, we need to call them only once when we do the canonicalization of all types and functions. Thus, move canonicalization of types in read_corpus() and perfom only once sorting the functions and types. * abg-ctf-reader.cc (process_ctf_archive()): Move canonicalize_all_types(), sort_functions() and sort_variables()... (read_corpus()): ...here, just after calling process_ctf_archive(). Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> --- src/abg-ctf-reader.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
Comments
Hello Claudiu, Sorry for my late reply, I was on the road the previous two weeks or so. claudiu.zissulescu-ianculescu@oracle.com a écrit: > From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> > > Sorting the functions and variables is done twce. Once in the > process_ctf_archive() and the second one, in read_corpus(). However, > we need to call them only once when we do the canonicalization of all > types and functions. Thus, move canonicalization of types in > read_corpus() and perfom only once sorting the functions and types. > > * abg-ctf-reader.cc (process_ctf_archive()): Move > canonicalize_all_types(), sort_functions() and sort_variables()... > (read_corpus()): ...here, just after calling process_ctf_archive(). > > Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> The patch looks good to me. I am running it through the CI builders on sourceware. You (and I) should receive an email in a while with the result of the run. I'll apply the patch then, if the result of run is OK. The branch which is being built is https://sourceware.org/git/?p=libabigail.git;a=shortlog;h=refs/heads/users/dodji/try-patches. Thanks! [...] Cheers,
Dodji Seketeli <dodji@seketeli.org> a écrit: [...] >> From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> >> >> Sorting the functions and variables is done twce. Once in the >> process_ctf_archive() and the second one, in read_corpus(). However, >> we need to call them only once when we do the canonicalization of all >> types and functions. Thus, move canonicalization of types in >> read_corpus() and perfom only once sorting the functions and types. >> >> * abg-ctf-reader.cc (process_ctf_archive()): Move >> canonicalize_all_types(), sort_functions() and sort_variables()... >> (read_corpus()): ...here, just after calling process_ctf_archive(). >> >> Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> > > The patch looks good to me. I am running it through the CI builders on > sourceware. [...] The builders are green so I have applied the patch to the mainline. Thanks! [...] Cheers!
diff --git a/src/abg-ctf-reader.cc b/src/abg-ctf-reader.cc index f4fb91ed..86c7752e 100644 --- a/src/abg-ctf-reader.cc +++ b/src/abg-ctf-reader.cc @@ -511,13 +511,6 @@ public: } ctf_dict_close(ctf_dict); - /* Canonicalize all the types generated above. This must be - done "a posteriori" because the processing of types may - require other related types to not be already - canonicalized. */ - canonicalize_all_types(); - corpus()->sort_functions(); - corpus()->sort_variables(); } /// Add a new type declaration to the given libabigail IR corpus CORP. @@ -702,6 +695,11 @@ public: else { process_ctf_archive(); + /* Canonicalize all the types generated above. This must be + done "a posteriori" because the processing of types may + require other related types to not be already + canonicalized. */ + canonicalize_all_types(); corpus()->sort_functions(); corpus()->sort_variables(); }