Skip to content

Commit 288ccbb

Browse files
committed
mempool-bench: fixup small performance regression
1 parent 2ebacd7 commit 288ccbb

File tree

1 file changed

+2
-1
lines changed
  • ouroboros-consensus/bench/mempool-bench

1 file changed

+2
-1
lines changed

ouroboros-consensus/bench/mempool-bench/Main.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import qualified Control.Tracer as Tracer
1616
import Data.Aeson
1717
import qualified Data.ByteString.Lazy as BL
1818
import qualified Data.Csv as Csv
19+
import Data.Foldable (foldMap')
1920
import Data.Maybe (fromMaybe)
2021
import Data.Set ()
2122
import qualified Data.Text as Text
@@ -139,7 +140,7 @@ openMempoolWithCapacityFor cmds =
139140
}
140141
where
141142
capacityRequiredByCmds = Mempool.mkCapacityBytesOverride totalTxsSize
142-
where totalTxsSize = foldMap TestBlock.txSize $ getCmdsTxs cmds
143+
where totalTxsSize = foldMap' TestBlock.txSize $ getCmdsTxs cmds
143144

144145
mkNTryAddTxs :: Int -> [MempoolCmd TestBlock.TestBlock]
145146
mkNTryAddTxs 0 = []

0 commit comments

Comments
 (0)