tdigest icon indicating copy to clipboard operation
tdigest copied to clipboard

Best way to serialize and load

Open microprediction opened this issue 1 year ago • 1 comments

I have a basic question about serialization and deserialization. How do you suggest that this is done? I ask because my instinct was json.dumps(t.to_dict()) but on the reverse trip, the current implementation of update_from_dict seems to be recalibrating from scratch unless I misunderstand. It is very slow. How should one quickly save and load many tdigests?

microprediction avatar Oct 06 '22 15:10 microprediction

See PR 62

microprediction avatar Oct 06 '22 17:10 microprediction