We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f999ca1 commit 8284518Copy full SHA for 8284518
src/Data/List/Types.purs
@@ -75,9 +75,9 @@ instance functorList :: Functor List where
75
-- chunk sizes determined through experimentation
76
listMap :: forall a b. (a -> b) -> List a -> List b
77
listMap f = startUnrolledMap unrollLimit where
78
- -- iterate the unrolled map up to 1000 times,
79
- -- which hits up to 5000 elements
80
- unrollLimit = 1000
+ -- iterate the unrolled map up to 200 times,
+ -- which hits up to 1000 elements
+ unrollLimit = 200
81
82
startUnrolledMap :: Int -> List a -> List b
83
startUnrolledMap 0 (x : xs) = f x : chunkedRevMap xs
0 commit comments