You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i just did some experiments with List.map and a foldl version of it, which seems to be faster (on average 25%), for different sizes and also when multiple mapping operations are applied subsequently within a pipe.
map f =List.foldl (\x acc ->(::)(f x) acc)[]>>List.reverse
See the benchmark
Maybe this is an optimization option, next to a native Kernel-function ...
The text was updated successfully, but these errors were encountered:
And boom, on Chromium I got a performance boost up to 250%, seems to be constant, tested for list lengths from 5 to 5000 ... On Firefox, the results seem to be similar, however it is dropping from 250% to 60% on lists with a 5000 elements...
Hi, i just did some experiments with List.map and a
foldl
version of it, which seems to be faster (on average 25%), for different sizes and also when multiple mapping operations are applied subsequently within a pipe.See the benchmark
Maybe this is an optimization option, next to a native Kernel-function ...
The text was updated successfully, but these errors were encountered: