grin/pool
hashmap 9e51e86538
Use generic types instead of trait objects in tx pool (#3308)
Tx pool takes some parameters as trait objects. It's not an idiomatic Rust code, in this particular case we should use generic types. Trait object makes sense when we accept in runtime different concrete types which implement the trait as a value of the same field. It's not the case here. Trait objects come with a price - instead of method dispatch in compile time we have to accept runtime dispatch. My guess we did it to not clutter the code with type parameters, which is understandable but still suboptimal.
2020-04-30 17:41:49 +02:00
..
src Use generic types instead of trait objects in tx pool (#3308) 2020-04-30 17:41:49 +02:00
tests Use generic types instead of trait objects in tx pool (#3308) 2020-04-30 17:41:49 +02:00
Cargo.toml Version bump for next development release 2020-03-02 12:27:16 +00:00