grin/store
hashmap 2397407dc4
Always return a typed structure from lmdb store (#3312)
We have a method get which returns a Vec, it's used in cases when we can't implement FromLmdbBytes or Readable on a desired type, eg when both traits and type are external for the current crate. This approach requires an extra allocation of a Vec, this PR introduces a method which accepts desirialzer as closure, which allows to desrialize in place without an intermidiate heap allocation.

It's still possible to get a Vec if needed, just pass a Vec constructor to get_with.
2020-05-05 11:00:23 +02:00
..
src Always return a typed structure from lmdb store (#3312) 2020-05-05 11:00:23 +02:00
tests Reduce number of allocations in to_key calls (#3311) 2020-04-30 17:47:44 +02:00
Cargo.toml Use croaring-mw with 'compat' feature (#3274) 2020-03-23 21:12:58 +01:00