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.
Re: Inlined functions and their original bodies - bloat
kinke via Digitalmars-d-learn Mon, 10 Jul 2023 03:01:02 -0700
The 'bloat' is usually gotten rid of by the linker if really
unreferenced in the binary being linked.
- Re: Inlined functions and their origi... Cecil Ward via Digitalmars-d-learn
- Re: Inlined functions and their ... Adam D Ruppe via Digitalmars-d-learn
- Re: Inlined functions and their ... kinke via Digitalmars-d-learn