From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D4E33851C0B; Sun, 24 May 2020 10:00:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D4E33851C0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590314450; bh=vle1s8sIY+5hmkTSOlchSCBAhjAUZVxhihokulSztK0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WJlnU6J6bCXyK5ripmfsyYzvfST2yuwUrlsb2utguWJDATY3cDBfbOJ1/mH8qvejg HfQoOHai6+ysSmzt557kvAVaywIycK73FYd4ZzsCRpsqFIpMlCtVmfkJCHUOlPjQXq xu0Chb20JNb2rH2GpmKHgLRFVo1wVmKeUaRiQ2+M= From: "fdumont at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/95079] unorderd_map::insert_or_assign and try_emplace should only hash and mod once unless there is a rehash. Date: Sun, 24 May 2020 10:00:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: fdumont at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fdumont at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2020 10:00:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95079 Fran=C3=A7ois Dumont changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |fdumont at gcc dot = gnu.org Status|NEW |ASSIGNED CC| |fdumont at gcc dot gnu.org --- Comment #2 from Fran=C3=A7ois Dumont --- I'd like to take this one and already started working on it. I've already many patches awaiting for the hashtable implementation but none fixing this problem. I also don't get the point about std::unordered_map performance issue on 64-bits platform. Maybe you should elaborate as part of another bug report.=