It takes only a patch of few lines to allow Base’s Dict to handle that, here is a POC, where you’re welcome to comment
I don’t know of an package doing that, but if this PR isn’t merged soon enough, I will package it up.
I mistakenly thought this will have a performance impact, that’s why I asked for a solution here, but now I have learned to better embrace immutable structs!
This seems restrictive. Key values need to be integers to convert to UInt. It’s actually slower than a normal dictionary.
I am looking for a simple and faster hashing algorithm for very small dicts (4-10 entries) that are accessed in a very lot loop. The values for each entry will never be changed–this is basically a lookup table. However, my lookup table is actually a dict of dicts. LittleDict proved to be slower than normal dict when nested.