Optimization: reduce BLS decompression (#766)

* Add RwLock-style caching for BLS pubkeys

* Tidy docker ignore

* Remove RwLocks

* Merge in master
This commit is contained in:
Paul Hauner
2020-01-10 15:32:10 +11:00
committed by GitHub
parent 5a8f2dd961
commit 370c658c7c
7 changed files with 182 additions and 139 deletions

View File

@@ -3,7 +3,7 @@ use super::*;
pub mod impls;
/// Returned when SSZ decoding fails.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub enum DecodeError {
/// The bytes supplied were too short to be decoded into the specified type.
InvalidByteLength { len: usize, expected: usize },