From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C8FB3858C33; Wed, 19 Jul 2023 12:55:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C8FB3858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689771359; bh=aSx404cSnYRnUQpwI0qj2w6faT+CAcfL3FGwnlwet0E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZB9U/ikENeB6TAuwUQFslsF/JyVwQcGzXK4atqa2V/8ZL3zm3c7xTX19WUWjSZCt5 KBJNHrlh2GHJjx/ahPQ2yrc3tlOAy9ZeKR67TYnaTfZmNveAIfVrESrbOAEubp7Ho5 ahwYxQ4bMYDJnnDwwg7lpkVOxyxE16APvr1gTNMA= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/110739] std::format for chrono types compiles very slowly Date: Wed, 19 Jul 2023 12:55:58 +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: 13.1.1 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D110739 --- Comment #2 from Jonathan Wakely --- Created attachment 55580 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55580&action=3Dedit Instantiate less code for chrono formatters, take 2 In this patch the converters like _S_date and _S_hms are called by _M_format before passing the argument to _M_x, _M_d_e etc. so that those function templates are only called with arguments that are already the right type. T= his reduces the number of different instantiations of those function templates. But this doesn't really help either.=