In production systems it turns out readerwriter locks sometimes ends up trying to release locks multiple times. It would help a lot if we could make KeyBundle thread safe without the use of locks.
Agree! I don't have any proposal right now. If I come up with something I'll let you know.
Reading the code for KeyBundle there seems to be some wrong assumptions, e.g. that arrays are copied by value and not reference.
Agree, should be fixed. You or me ?
I've started in #110. To remove the locks, we could begin with the read locks.
In production systems it turns out readerwriter locks sometimes ends up trying to release locks multiple times. It would help a lot if we could make KeyBundle thread safe without the use of locks.