Poor Performance gdc11 for base 64 with O3

max haughton maxhaton at gmail.com
Sun Sep 19 19:31:27 UTC 2021


On Sunday, 19 September 2021 at 19:04:28 UTC, Mahdi wrote:
> In optimization level 3, gdc11 doesn't seem to work as well as  
> gdc10 for base 64 benchmark.
> On this site:
> https://github.com/kostya/benchmarks#base64
>
> [...]

It's because of libphobos not being compiled with inlining due to 
the changes to template linkage emission. If you rebuild Phobos 
with LTO enabled (if it isn't already) you can get your 
performance back.

Compile with LTO and try that.


More information about the D.gnu mailing list