1 unstable release

0.0.1 Jul 23, 2021

#39 in #bson

Download history 3/week @ 2024-11-19 1/week @ 2024-11-26 9/week @ 2024-12-03 18/week @ 2024-12-10 11/week @ 2024-12-17 5/week @ 2025-01-07 10/week @ 2025-01-14 12/week @ 2025-01-21 1/week @ 2025-01-28 30/week @ 2025-02-04 96/week @ 2025-02-11 54/week @ 2025-02-18 56/week @ 2025-02-25 22/week @ 2025-03-04

232 downloads per month

0BSD license

13KB
291 lines

serde_bson

Originally implemented as a workaround to the bson crate cloning every value it comes across and it's looking like it shows significant improvement across the board for serialisation (~80% improvement).

mongodb's bson  time:   [1.1160 us 1.1171 us 1.1183 us]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild

serde_bson      time:   [201.99 ns 202.17 ns 202.38 ns]                                 
Found 10 outliers among 100 measurements (10.00%)
  4 (4.00%) low mild
  4 (4.00%) high mild
  2 (2.00%) high severe

There's a few pieces missing such as arrays and nested documents but they're not too difficult to add, it's just that it's 2:38am and I've smashed this out in an hour.

Pull requests welcome as always.

Dependencies

~275–550KB
~10K SLoC