Skip to content

Commit

Permalink
Benchmark splitSepBy_ instead of splitOn
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar authored and adithyaov committed Jan 7, 2025
1 parent 05d6e90 commit 60a1383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/Streamly/Benchmark/Data/Stream/Split.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ toarr = Array.fromList . map (fromIntegral . ord)
splitOn :: Handle -> IO Int
splitOn inh =
(Stream.fold Fold.length
$ Stream.splitOn (== lf) Fold.drain
$ Stream.splitSepBy_ (== lf) Fold.drain
$ Handle.read inh) -- >>= print

#ifdef INSPECTION
Expand Down

0 comments on commit 60a1383

Please sign in to comment.