grin/core/tests
hashmap 6556dd585d
Pass byte slice to to_hex (#3307)
Currently we pass a Vec. This requires an extra allocation and copy of all elements if a caller doesn't have a Vec already, which is at least 95% of cases.
Another, a smaller issue, we have a function util::to_hex and some structs implement to_hex() on top of it, so we have a mix of it in the code. This PR introduces a trait and a blanket impl for AsRef<[u8]> which brings a uniform API (obj.to_hex()). One unfortunate case is arrays of size bigger than 32 - Rust doesn't implement AsRef for them so it requires an ugly hack (&array[..]).to_hex().
2020-04-24 11:18:26 +02:00
..
block.rs Pass byte slice to to_hex (#3307) 2020-04-24 11:18:26 +02:00
common.rs Less cloning and pattern simplifications (#3216) 2020-02-05 11:02:07 -05:00
consensus_automated.rs Less cloning and pattern simplifications (#3216) 2020-02-05 11:02:07 -05:00
consensus_floonet.rs tests: split consensus tests into separate files for each chain type … (#3168) 2020-01-27 18:51:51 -05:00
consensus_mainnet.rs Less cloning and pattern simplifications (#3216) 2020-02-05 11:02:07 -05:00
core.rs Less cloning and pattern simplifications (#3216) 2020-02-05 11:02:07 -05:00
merkle_proof.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
pmmr.rs Less cloning and pattern simplifications (#3216) 2020-02-05 11:02:07 -05:00
transaction.rs Pass SwitchCommitment by value instead of reference (#3217) 2020-02-04 08:52:00 -05:00
vec_backend.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
verifier_cache.rs Less cloning and pattern simplifications (#3216) 2020-02-05 11:02:07 -05:00