Improve the OOP ABI
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Jan 22 22:50:55 UTC 2024
On 23/01/2024 11:48 AM, Alexandru Ermicioi wrote:
> On Sunday, 14 January 2024 at 09:04:32 UTC, Walter Bright wrote:
>> On 9/28/2023 5:42 AM, deadalnix wrote:
>>> 1/ Downcast to final classes.
>>
>> This has a PR for it now.
>>
>> https://github.com/dlang/dmd/pull/16032
>
> Just wondering, could a trie be used instead of hashing algorithm?
>
> It would guarantee that no collisions would happen at all, with better
> performance than simple comparison.
>
> Best regards,
> Alexandru.
That sounds an lot like an assumption that TypeInfo is unique in a
process. Which may not be true.
If it was true, we could compare pointers and don't need any of this logic.
More information about the Digitalmars-d
mailing list