Skip to content

Commit

Permalink
mempool-bench: fixup small performance regression
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrisby committed Jul 11, 2024
1 parent 2ebacd7 commit 288ccbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ouroboros-consensus/bench/mempool-bench/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import qualified Control.Tracer as Tracer
import Data.Aeson
import qualified Data.ByteString.Lazy as BL
import qualified Data.Csv as Csv
import Data.Foldable (foldMap')
import Data.Maybe (fromMaybe)
import Data.Set ()
import qualified Data.Text as Text
Expand Down Expand Up @@ -139,7 +140,7 @@ openMempoolWithCapacityFor cmds =
}
where
capacityRequiredByCmds = Mempool.mkCapacityBytesOverride totalTxsSize
where totalTxsSize = foldMap TestBlock.txSize $ getCmdsTxs cmds
where totalTxsSize = foldMap' TestBlock.txSize $ getCmdsTxs cmds

mkNTryAddTxs :: Int -> [MempoolCmd TestBlock.TestBlock]
mkNTryAddTxs 0 = []
Expand Down

0 comments on commit 288ccbb

Please sign in to comment.