`filter` might be faster than your second suggesti...
# stdlib
j
filter
might be faster than your second suggestion since the entries can be re-used instead of copied