The 'bloat' is usually gotten rid of by the linker if really unreferenced in the binary being linked.

There's a little trick to make sure the function is *always* inlined, across modules too, allowing to suppress the then guaranteed unused function symbol - converting it to a function literal. See https://github.com/ldc-developers/ldc/issues/2968#issuecomment-1628615699.

Reply via email to