grin/p2p/src
hashmap 80a8f76c4c
Optimize Option to Error conversion (#3036)
To convert option to error we generate an error message. In some places
it contains header or block hash code or other data which is costly to
produce. So during the initial header sync we spend 12% of all time on
generating those messages (in 99% cases we don't use it). This PR
introduces a lazy generation of error messages which completely
eliminates CPU load during the header sync.
2019-09-10 14:38:36 +02:00
..
conn.rs fix: the cpuload 100% in case the tcpstream WouldBlock (#3029) 2019-09-10 07:55:57 +08:00
handshake.rs [2.x.x] Writeable protocol version aware (#2856) 2019-07-06 15:51:03 +01:00
lib.rs merge master into 1.1.0 2019-04-16 11:24:43 +01:00
msg.rs [2.x.x] Use blocking IO in P2P to reduce CPU load (#2855) 2019-07-12 23:17:38 +02:00
peer.rs cleanup deprecation warnings about missing dyn with trait objects (#2997) 2019-08-26 21:17:47 +01:00
peers.rs cleanup deprecation warnings about missing dyn with trait objects (#2997) 2019-08-26 21:17:47 +01:00
protocol.rs TxHashSet Download Improvement (#2984) 2019-08-01 17:46:06 +01:00
serv.rs cleanup deprecation warnings about missing dyn with trait objects (#2997) 2019-08-26 21:17:47 +01:00
store.rs Optimize Option to Error conversion (#3036) 2019-09-10 14:38:36 +02:00
types.rs cleanup deprecation warnings about missing dyn with trait objects (#2997) 2019-08-26 21:17:47 +01:00