Do you know of a C dictionary that supports COW transactions?

Posted by Tim Post on Stack Overflow See other posts from Stack Overflow or by Tim Post
Published on 2010-03-16T09:01:32Z Indexed on 2010/03/16 9:06 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

I'm looking for a key -> value dictionary library written in C that supports a theoretically unlimited number of cheap transactions.

I'd like to have one dictionary in memory, with hundreds of threads starting transactions, possibly modifying the dictionary, ending (completing) the transaction or potentially aborting the transaction. Only 50% of the time will these threads actually modify the dictionary.

Most dictionary transaction implementations that I've seen copy always, instead of copying on write, whenever a transaction is started. Given the expected size (> 1GB) of the dictionary, I'm hoping to find something that COWs only when something is actually changed during a transaction. I'm also hoping for something that is packaged by most major GNU/Linux distributions.

Any suggestions or links are very much appreciated.

© Stack Overflow or respective owner

Related posts about c

    Related posts about dictionary