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
When implementing the algorithm the other way around, the result is in the left positions of the input vector. This allows us to return the result by truncating such which saves a new allocation for the result.
However, it's unclear if it is worth the change and should be benchmarked in Wasm. Especially since pick would typically have not too many result items.
The text was updated successfully, but these errors were encountered:
When implementing the algorithm the other way around, the result is in the left positions of the input vector. This allows us to return the result by truncating such which saves a new allocation for the result.
This is how lodash implement's it as well: https://github.com/lodash/lodash/blob/4.17.21/lodash.js#L6767-L6790
However, it's unclear if it is worth the change and should be benchmarked in Wasm. Especially since pick would typically have not too many result items.
The text was updated successfully, but these errors were encountered: