armon/libart

Enhancement Request: Serialization, deserialization

cemeyer opened this issue · 2 comments

It would be useful to be able to serialize my ART to a file and grab it from file again without expanding to a full (k,v) list. My current data collection process is somewhat expensive and I read directly into ART, but every time I want to iterate and do some new analysis on the ART I have to re-collect data, and that sucks.

I'd prefer to just serialize the ART itself instead of the uncompressed (k,v) list. Anyway, just a thought.

You don't have to recollect the data, you should be able to just use art_iter and dump the existing data. As you said, it would be a full (k,v) list. The main issue I see would be serialization/deserialization of opaque values. It get's to be a bit of a mess.

Ah, good point. I can do that, I just didn't want to :-). Given arbitrary opaque objects, definitely seems out of scope for libart. I am just using the pointers as large integers, but kv list is still better than recollecting, I'll probably do it eventually.

Closing, I don't know, INVALID / CANTFIX / out-of-scope.