Skip to content

Commit 5998634

Browse files
committed
Rebase with master
1 parent 7f652e1 commit 5998634

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

benchmark/Streamly/Benchmark/Prelude/Serial/NestedStream.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ joinMapWith :: (S.MonadAsync m) =>
440440
joinMapWith 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

446446
o_n_heap_buffering :: Int -> [Benchmark]
447447
o_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
-------------------------------------------------------------------------------

test/Streamly/Test/Prelude/Top.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)