[GSoC 2025] Templated Hooks - Weekly Update #11

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Wed Aug 20 14:16:52 UTC 2025


A couple of thoughts.

It is expected that as you add more symbols you get bigger binaries.
Which is what templating compiler hooks does.

It may be worth using pragma(msg) to determine what combinations of 
instantiations are taking place.
 From there maybe you can determine if there is some overlap or inlining 
that should be forced.

Forced inlining may benefit from ensuring a hook is mostly just command 
and control at compile time stuff, using a non-templated function to do 
most of the work.


More information about the Digitalmars-d mailing list