Consider using proper hashing for Dict
#3
Labels
enhancement
New feature or request
good first issue
Good for newcomers
nix incompatibility
Some function works differently or doesn't work in the Nix target
Dictionaries currently work in the following way:
O(n)
.We could try to implement some proper hashing system instead of stringifying things. However, I'm not sure how possible that is for arbitrary attribute sets or lists (especially considering that they could have infinite depth). Also, we'd like have to keep using attribute sets with strings for fast access in some way if we want to have some amount of performance.
Still, it'd be interesting to take an attempt at this.
(See the reference implementation for JavaScript at
src/dict.mjs
)The text was updated successfully, but these errors were encountered: