Repository navigation
Releases
0.2.0: Add serde serialization and AddAssign to CKMS
Make CKMS serializable, impl AddAssign (#7)
This commit fiddles with the interface of CKMS a bit by adding the AddAssign trait--useful for merging two CKMS's together or for using CKMS in a numeric context--and serde serialization. It's now possible to flush this happy thing to disk or over the wire.
A few bugs were corrected:
- It's now possible to set the error bounds, which previously was hard-coded at 0.001 and
- partial_cmp is used in place of home-grown comparision.
0.1.4: [CKMS] Insert into samples immediately
Insert into samples immediately
The CKMS paper discusses buffering points for batch or 'cursor' insertion. After some experimentation it was determined that this buffering decreased throughput in the present implementation. A benchmark to stress the machine to its limits is desirable.
On the plus side, there is no longer any need for a flush_0 function and the user will not be tripped up by a lack of points that have been inserted but not removed from buffer.
0.1.3: Adjust query_1 to be immutable
Adjust query_1 to be immutable
Previously a call to query_1 would privately invoke flush_0. This commit prefers to avoid this to allow query_1 to be immutable which improves the ergonomics of the library. This does mean, potentially, that a client may have to call flush_0 themselves, as noted in the docs.
Bump version to 0.1.2
Relax T: std::cmp::Ord on CKMS (#1)
The use of BinaryHeap internal to CKMS forced T to be constraint to types that implemented std::cmp::Ord. However, given that the internal buffer is small-ish outside of conditions where CKMS error is very, very small we prefer to do a sorted insert into a Vec.