Inlined functions and their original bodies - bloat
kinke
noone at nowhere.com
Mon Jul 10 09:56:02 UTC 2023
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.
More information about the Digitalmars-d-learn
mailing list