Dan Sugalski <[EMAIL PROTECTED]> wrote:Why not just have the hash value be an integer, then each register increments it and each unregister decrements it. With the entry getting removed if it hits 0.
It's fine for this to be a simple array for now. I realize that means
O(n) access times,
I'd use a custom hash with the PMC address being the key[1]. /Me thinks, it doesn't help, when a PMC gets registered multiple times - its always the same address - removing it multiple times is fine, the first succeeds, following fail silently, they do nothing.
On a side note, couldn't this be used for the explicit root set augmentation version of DOD that was discussed? If this is an argument that I should not open, just say so...
Matt