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
I'm profiling the compilation process of my project which uses requests, which in turn uses cachetools.
In an empty app.d that only imports requests, HashMap._Bucket.toString() takes 100 milliseconds to compile, or about one third of the whole compilation process (excluding compiler start-up). It is not a template so it is always compiled.
We can't easily make std.format.format cheaper, but can we at least make toString a template? I have no use for it myself and I'd like to avoid the 100ms.
EndeavourOS/Arch x86_64, dmd 2.107-beta.1, ldc 1.36.0.
I'm profiling the compilation process of my project which uses
requests
, which in turn usescachetools
.In an empty
app.d
that only importsrequests
,HashMap._Bucket.toString()
takes 100 milliseconds to compile, or about one third of the whole compilation process (excluding compiler start-up). It is not a template so it is always compiled.cachetools/source/cachetools/containers/hashmap.d
Lines 108 to 121 in adc3d53
We can't easily make
std.format.format
cheaper, but can we at least maketoString
a template? I have no use for it myself and I'd like to avoid the 100ms.The example empty file:
Profile viewed in tracy:
The text was updated successfully, but these errors were encountered: