D perfomance

Sebastiaan Koppe mail at skoppe.eu
Sun Apr 26 12:11:59 UTC 2020


On Sunday, 26 April 2020 at 11:59:27 UTC, Stefan Koch wrote:
> On Sunday, 26 April 2020 at 11:40:49 UTC, John Colvin wrote:
>>
>> I understand that it was an annoying breaking change, but 
>> aside from the difficulty of migrating I don't understand why 
>> a custom type isn't the appropriate solution for this problem. 
>> I think I heard "We want to use the built-in slices", but I 
>> never understood the technical argument behind that, or how it 
>> stacked up against not getting the desired behaviour.
>>
> Can you imagine replacing every usage of slices with a custom 
> type in your code?
> And making sure programmers joining the company do the same?
> and having converts that e.g. accept ubyte arrays from 
> libraries and convert them into yours?

I suppose nowadays that custom type can use a scoped ubyte slice 
to expose its temp buffer.


More information about the Digitalmars-d mailing list