Skip to content

Commit

Permalink
locli: switch to foldl' on the main spine
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Jan 17, 2022
1 parent f1c44ab commit d157825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bench/locli/src/Cardano/Analysis/BlockProp.hs
Expand Up @@ -454,7 +454,7 @@ blockEventMapsFromLogObjects run (f@(unJsonLogfile -> fp), xs) =
["No block events in ",fp," : ","LogObject count: ",show (length xs)]
else view
where
view = foldl (blockPropMachEventsStep run f) initial xs
view = foldl' (blockPropMachEventsStep run f) initial xs
initial =
MachView
{ mvBlocks = mempty
Expand Down
2 changes: 1 addition & 1 deletion bench/locli/src/Cardano/Analysis/MachTimeline.hs
Expand Up @@ -158,7 +158,7 @@ data RunScalars
timelineFromLogObjects :: Run -> [LogObject] -> (RunScalars, [SlotStats])
timelineFromLogObjects run =
(aRunScalars &&& reverse . aSlotStats)
. foldl (timelineStep run) zeroTimelineAccum
. foldl' (timelineStep run) zeroTimelineAccum
where
zeroTimelineAccum :: TimelineAccum
zeroTimelineAccum =
Expand Down

0 comments on commit d157825

Please sign in to comment.