We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc87e26 commit 9dae9a6Copy full SHA for 9dae9a6
plutus-core/plutus-core/src/PlutusCore/Evaluation/Machine/ExMemoryUsage.hs
@@ -306,7 +306,7 @@ addConstantRose (CostRose cost1 forest1) (CostRose cost2 forest2) =
306
307
instance {- ExMemoryUsage a => -} ExMemoryUsage [a] where
308
-- sizeof([a]) = (1 + 3N) words + N * sizeof(v)
309
- memoryUsage _ = singletonRose 1
+ memoryUsage l = singletonRose . fromIntegral $ length l
310
{- = CostRose nilCost . map (addConstantRose consRose . memoryUsage) where
311
-- As per https://wiki.haskell.org/GHC/Memory_Footprint
312
nilCost = 1
0 commit comments