3 ms·
> Later I've learnt to love UUID's whenever performance allows. This is essentially the same as what the article suggests, just with a lot more spare bits for
by magicalhippo 6y ago
> Later I've learnt to love UUID's whenever performance allows.
This is essentially the same as what the article suggests, just with a lot more spare bits for creating unique handles.
"This is where the ‘free bits’ in a handle come in: Let’s say our handles are 16-bits, but we only ever need 1024 items alive at the same time. Only 10 index bits are needed to address 1024 items, which leaves 6 bits free for something else.
If those 6 bits contain some sort of ‘unique pattern’, it’s possible to detect dangling accesses: [...]"