castle icon indicating copy to clipboard operation
castle copied to clipboard

Hashed Kind

Open ncannasse opened this issue 10 months ago • 2 comments

In order to speedup performances at runtime, we could use either represent kind id that is currently a String as an hashed id or an index based id to perform kind-kind comparison (in switch/case XXX or inf.id == XXX). But then the debugger would only display the hashed id instead of the actual identifier, which would be make everything more complicated to debug.

In order to fix this we would need to be able to tag specific ints in the HL debugger (same as we are planning for EnumFlags, but using an abstract such has hl.HashedIdent) and be able to reverse the hash based on the cache from the VM. Ping @yuxiaomao

ncannasse avatar Mar 27 '24 16:03 ncannasse