dashmap icon indicating copy to clipboard operation
dashmap copied to clipboard

feature: parallel retain

Open alex opened this issue 1 month ago • 0 comments

In https://github.com/xacrimon/dashmap/issues/82 a previous discussion was had, and a conclusion was that users could implement a parallel retain by using the raw shards() API.

However, with the switch to using hashbrown's RawTable, this no longer works -- RawTable doesn't have a retain API. You can still implement it by hand, but it now involves some unsafe and other fiddly bits.

What do you think about a PR to add a par_retain() method when the rayon feature is used? I'd be happy to contribute this.

alex avatar Nov 22 '25 11:11 alex