I do something quite similar to this at the moment. It's in very early developmental stages but so far i've not noticed a performance hit from my approach. Have you thought about going lock-free and having a flag on each entry that is altered with compare and swap? It might be that you just need to get the cost of your lock down.
DaveMember Since 22 Mar 2004
Offline Last Active Aug 21 2014 10:12 AM