File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
benchmark/Streamly/Benchmark/Prelude/Serial
test/Streamly/Test/Prelude Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -440,8 +440,8 @@ joinMapWith :: (S.MonadAsync m) =>
440440joinMapWith j val1 val2 i =
441441 S. drain
442442 $ j
443- (fmap toKvMap (sourceUnfoldrM val1 i))
444- (fmap toKvMap (sourceUnfoldrM val2 i))
443+ (fmap toKv (sourceUnfoldrM val1 i))
444+ (fmap toKv (sourceUnfoldrM val2 i))
445445
446446o_n_heap_buffering :: Int -> [Benchmark ]
447447o_n_heap_buffering value =
@@ -462,13 +462,13 @@ o_n_heap_buffering value =
462462 , benchIOSrc1 " intersectBy"
463463 $ joinWith Internal. intersectBy sqrtVal sqrtVal
464464 , benchIOSrc1 " intersectBySorted"
465- $ joinMapWith Internal. intersectBySorted sqrtVal sqrtVal
465+ $ joinMapWith ( Internal. intersectBySorted compare ) sqrtVal sqrtVal
466466 ]
467467 ]
468468
469469 where
470470
471- halfVal = value `div` 2
471+ -- halfVal = value `div` 2
472472 sqrtVal = round $ sqrt (fromIntegral value :: Double )
473473
474474-------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ intersectBy ::
178178 )
179179 -> (Int -> Int -> a )
180180 -> Property
181- intersectBy srt intersectFunc cmp =
181+ intersectBy _srt intersectFunc cmp =
182182 forAll (listOf (chooseInt (min_value, max_value))) $ \ ls0 ->
183183 forAll (listOf (chooseInt (min_value, max_value))) $ \ ls1 ->
184184 monadicIO $ action (sort ls0) (sort ls1)
@@ -215,6 +215,7 @@ main = hspec $ do
215215 prop " joinLeft" Main. joinLeft
216216 prop " joinLeftMap" Main. joinLeftMap
217217 -- intersect
218- prop " intersectBy" (intersectBy id Top. intersectBy (==) )
218+ -- XXX currently API is broken https://github.com/composewell/streamly/issues/1471
219+ -- prop "intersectBy" (intersectBy id Top.intersectBy (==))
219220 prop " intersectBySorted"
220221 (intersectBy sort Top. intersectBySorted compare )
You can’t perform that action at this time.
0 commit comments