robclu / leapfrog

Lock-free concurrent and single-threaded hash map implementations using Leapfrog probing. Currently the highest performance concurrent HashMap in Rust for certain use cases.
Apache License 2.0
202 stars 9 forks source link

Serde support #1

Closed mre closed 2 years ago

mre commented 2 years ago

Dashmap supports serde with the optional serde feature. Is this a feature that is out of scope for this crate or is there a chance it can be added?

robclu commented 2 years ago

Hey, I just had a look and it seems like it should be possible to add serde support. I will see if I can add that.

robclu commented 2 years ago

Hi,

I've added serde support for version 0.2.0. It required having the keys stored in the map, which were not there in the first version. It was quite a bit change which is why this took a while.

The tests for serde support are currently very simple, so if you run into any problems please submit an issue. It should be a lot faster to fix as the update to 0.2.0 was quite big in the end.

mre commented 2 years ago

Thanks a lot for adding this @robclu. I'll give it a try.