mirror of
https://github.com/composewell/streamly.git
synced 2024-09-19 07:29:02 +03:00
Use a shorter stream for concatMapWithInterleave
It has quadratic performance
This commit is contained in:
parent
4647230992
commit
25e2dd5562
@ -200,8 +200,8 @@ o_n_space_concat value =
|
||||
-- concatMapWith using StreamD versions of interleave operations are
|
||||
-- all quadratic, we just measure the sqrtVal benchmark for comparison.
|
||||
benchIOSrc1
|
||||
"concatMapWithInterleave (n of 1)"
|
||||
(concatStreamsWith Internal.interleave value 1)
|
||||
"concatMapWithInterleave (sqrtVal of 1)"
|
||||
(concatStreamsWith Internal.interleave sqrtVal 1)
|
||||
, benchIOSrc1
|
||||
"concatMapWithInterleave (sqrtVal of sqrtVal)"
|
||||
(concatStreamsWith Internal.interleave sqrtVal sqrtVal)
|
||||
|
Loading…
Reference in New Issue
Block a user