From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C44603846410; Thu, 25 Apr 2024 11:20:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C44603846410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714044059; bh=2tC7HFEAbEoOZPUyxwUJCGPRJft3Sj/Fz/kyJNs6AYw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=twkFL/64S0cfUzy52TuqtVZrpFe11yZuheyyVFlKQn7R2M4QACaRlRLRMYz7/JZme uWbbtKNkJszr7+Da4PJqjkWDbSBydXMLTiZOQ1B0SqS9xLcAYjPXKYFrpan9NEWWgJ vxaA1e+44juW0fHHoo5o3P97ZwB/URvdthaiqePo= From: "matthew.thompson at nasa dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/98426] find_symbol in module.c traverses O(N) part of a search tree Date: Thu, 25 Apr 2024 11:20:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: matthew.thompson at nasa dot gov X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98426 --- Comment #9 from Matt Thompson --- Jerry, I tried your patch, but it didn't seem to help my reproducer. Stock GCC13: Number of Modules | Build Time ----------------- | ---------- 10 | 0.336674 20 | 2.34525 30 | 7.37042 40 | 17.2896 50 | 33.9653 GCC13 with Jerry Patch: Number of Modules | Build Time ----------------- | ---------- 10 | 0.378347 20 | 2.51914 30 | 8.10597 40 | 18.982 50 | 37.3188=