Cuong Manh Le
915d9de91d
p2p/pex: reuse hash.Hasher per addrbook for speed ( #6509 )
...
By pre-creating the hasher, instead of creating new one everytime
addrbook.hash is called.
```
name old time/op new time/op delta
AddrBook_hash-8 181ns ±13% 80ns ± 1% -56.08% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
AddrBook_hash-8 216B ± 0% 8B ± 0% -96.30% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
AddrBook_hash-8 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.000 n=10+10)
```
Fixed #6508
2021-06-01 16:38:36 +00:00
..
2021-05-25 16:25:31 +00:00
2021-01-04 11:25:20 +01:00
2021-02-03 23:03:02 +00:00
2021-05-26 14:39:04 -04:00
2021-06-01 16:38:36 +00:00
2021-05-25 16:25:31 +00:00
2020-10-13 10:22:53 +02:00
2021-05-10 09:48:24 +02:00
2021-02-22 16:24:56 +01:00
2020-11-17 15:37:35 +00:00
2021-05-25 16:25:31 +00:00
2021-03-29 17:07:05 -04:00
2021-03-29 17:07:05 -04:00
2021-01-04 11:25:20 +01:00
2021-02-01 09:03:41 +00:00
2021-02-01 09:03:41 +00:00
2021-03-26 09:01:41 -04:00
2020-06-25 14:03:59 +00:00
2021-02-11 18:59:18 +01:00
2020-12-15 18:54:25 +00:00
2021-05-05 18:46:51 +02:00
2021-05-10 22:22:07 +02:00
2021-01-04 11:25:20 +01:00
2021-05-25 16:25:31 +00:00
2021-01-30 10:51:22 +00:00
2021-05-05 18:46:51 +02:00
2021-04-26 13:03:19 +02:00
2021-05-17 17:05:44 -04:00
2021-05-25 16:25:31 +00:00
2021-05-25 16:25:31 +00:00
2021-05-25 16:25:31 +00:00
2020-02-07 12:53:28 +01:00
2021-05-25 16:25:31 +00:00
2021-03-25 16:58:46 -04:00
2021-05-26 14:39:04 -04:00
2021-05-26 14:39:04 -04:00
2021-03-01 20:18:51 +04:00
2021-04-21 18:50:39 +02:00
2021-05-25 16:25:31 +00:00
2021-05-05 18:46:51 +02:00
2021-04-23 16:00:35 +02:00
2021-02-01 08:24:31 +00:00
2021-05-25 16:25:31 +00:00
2021-03-25 16:19:11 -04:00
2021-05-25 16:25:31 +00:00
2021-04-26 13:03:19 +02:00
2021-02-03 23:03:02 +00:00
2018-06-20 17:35:30 -07:00
2021-05-25 16:25:31 +00:00
2021-05-25 16:25:31 +00:00