You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::format is very cool, but why did you include <format> to <chrono>? This change alone slowed down compilation for our project by 20%. Is it required by the standard now to include <format> (to support std::formatter specialization)? It's just that <chrono> is included by so many other headers like <mutex> and <thread> and Qt too.
Separately from any throughput improvements for <format>, I believe it should be possible to remove this dependency:
Implementations of some operator<<s in <chrono> are currently dependent on std::format, which is requiring almost everything in <format>. IMO removing the dependence on <format> essentially needs implementing these operator<<s in some alternative ways.
On reddit, u/tgolyi reports:
Separately from any throughput improvements for
<format>
, I believe it should be possible to remove this dependency:STL/stl/inc/chrono
Lines 37 to 40 in 4c862ee
The fix would presumably involve some combination of:
formatter
etc.)Related to DevCom-10046069 "Including chrono and compiling with -std:c++20 is ten time slower than before" and internal VSO-1543202 / AB#1543202 .
The text was updated successfully, but these errors were encountered: