This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree 2 files changed +1
-10
lines changed
bench/Bench/Pos/Diffusion
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ module Bench.Pos.Diffusion.BlockDownload where
15
15
import Universum
16
16
17
17
import Control.Concurrent.STM (readTBQueue )
18
- import Control.DeepSeq (NFData , force )
18
+ import Control.DeepSeq (force )
19
19
import Control.Monad.IO.Class (liftIO )
20
20
import qualified Criterion
21
21
import qualified Criterion.Main as Criterion
@@ -287,14 +287,6 @@ runBlockDownloadBenchmark :: Criterion.Mode -> NodeId -> (Int -> IO ()) -> Diffu
287
287
runBlockDownloadBenchmark mode serverAddress setStreamIORef client =
288
288
Criterion. runMode mode $ blockDownloadBenchmarks serverAddress setStreamIORef client
289
289
290
- -- It's surprisingly cumbersome to give a non-orphan 'NFData' instance on
291
- -- 'BlockHeader', since we have that 'Blockchain' typeclass with a bunch of
292
- -- data families. 'BHeaderHash GenesisBlockchain', for instance, must have
293
- -- an 'NFData' instance, but in that module we don't yet know that this is
294
- -- in fact 'HeaderHash' ~ 'Crypto.Digest Blake2b_256'.
295
- -- Anyway, there's a whole saga of pain caused by that silly abstraction.
296
- instance NFData BlockHeader
297
-
298
290
runBenchmark :: IO ()
299
291
runBenchmark = do
300
292
{-
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import Pos.Binary.Class
9
9
import Pos.Binary.Communication ()
10
10
import Pos.Binary.Core ()
11
11
import Pos.Binary.Delegation ()
12
- import Pos.Binary.Merkle ()
13
12
import Pos.Binary.Ssc ()
14
13
import Pos.Binary.Txp ()
15
14
import Pos.Binary.Update ()
You can’t perform that action at this time.
0 commit comments