[Bug libstdc++/113704] std::locale::locale<Facet>(const locale&, Facet*) is inefficient
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 10 14:50:33 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113704
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-07-10
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We could add a new _Impl constructor that takes a facet::id as an argument, and
ensures the array it allocates has room for that id. That will ensure that
_M_install_facet doesn't need to reallocate and so is efficient.
More information about the Gcc-bugs
mailing list