Tsoding streamed about D
Walter Bright
newshound2 at digitalmars.com
Thu Mar 27 21:04:46 UTC 2025
On 3/19/2025 12:47 AM, Manu wrote:
> I never want to see 8 different copies of a function because it's called with
> byte,ubyte,short,ushort,int,uint,long,ulong... where one opcode is different
> because it performed a different width sign-extension, and where the
> sign-extension should have been performed by the calling code anyway! Phobos is
> lousy with this sort of problem, and the binaries it produces are orders of
> magnitude bigger than they should be a lot of the time. Very aggressive
> optimisation might fix it, but it's basically just random chance as to whether
> optimisation will successfully collapse some insane code down to something
> appropriate or not.
I'm painfully aware of the template bloat.
Adam Wilson is in charge of Phobos 3. Let him know!
More information about the Digitalmars-d
mailing list