Comprehension vs map and filter unexpected speeds

Yes, it was just to complete the question fore later users.

1 Like

Today I Learned about BitArrays!

1 Like

Note that filter(x -> x > 0.5, A) creates an additional array. If you want the non-allocating version, use Iterators.filter(x -> x > 0.5, A)

2 Likes