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 677342a commit bc5d4aaCopy full SHA for bc5d4aa
src/Data/List/Types.purs
@@ -78,9 +78,9 @@ instance functorList :: Functor List where
78
-- chunk sizes determined through experimentation
79
listMap :: forall a b. (a -> b) -> List a -> List b
80
listMap f = startUnrolledMap unrollLimit where
81
- -- iterate the unrolled map up to 1000 times,
82
- -- which hits up to 5000 elements
83
- unrollLimit = 1000
+ -- iterate the unrolled map up to 200 times,
+ -- which hits up to 1000 elements
+ unrollLimit = 200
84
85
startUnrolledMap :: Int -> List a -> List b
86
startUnrolledMap 0 (x : xs) = f x : chunkedRevMap xs
0 commit comments