sile / scalable_cuckoo_filter

A variant of Cuckoo Filter whose size automatically scales as necessary
MIT License
17 stars 7 forks source link

Is it serializable? #5

Closed kiyoakii closed 1 year ago

kiyoakii commented 1 year ago

Hi, I'm trying to integrate the cuckoo filter into my LSM engine. I like your scalable filter, but it seems that the struct itself didn't implement any method for exporting itself so that it can be stored persistently. Is there any other way to do this?

sile commented 1 year ago

scalable_cuckoo_filter provides an optional serde_support feature. If the feature is enabled, ScalableCuckooFilter can be serialized using serde. An example code can be found in https://github.com/sile/scalable_cuckoo_filter/blob/master/src/scalable_cuckoo_filter.rs#L333-L349.

kiyoakii commented 1 year ago

Thanks!! Sorry I didn't see that before.