From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B9EDA3858D33; Tue, 8 Aug 2023 10:55:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9EDA3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691492108; bh=VjcXBUCBpV1W4jon7RvgsFJjiDpzOu1GxCjp1HWgZnc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KQWDsSltmuMDU14R7p1l6eFXE6P6zmSqcir49ywplNlVHBKjpxXysqRpjgFJKYLB+ PiikaepPiVdS2V0U5o3veDdRbtV1dA/q1UQqwruMtMBG0Lw77fFXt5fsTmwi1hgZrR eWfcFBDX6vQ4yc22jm7/hQStMHMSrm9yat6u1qWE= From: "janschultke at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/110945] std::basic_string::assign dramatically slower than other means of copying memory Date: Tue, 08 Aug 2023 10:55:08 +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: 12.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: janschultke at googlemail dot com X-Bugzilla-Status: UNCONFIRMED 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=3D110945 --- Comment #3 from Jan Schultke --- When increasing the input size to 8 MiB, the results become more similar to what clang delivers for 1 MiB too: https://quick-bench.com/q/DFHYW6eZq-FAif8xuLkBOPwzYWA=