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
The code currently in withAll on both mutable and immutable implementations calls toArray on IntStream which if the Stream is very large can be extremely expensive.
I've created this issue as a counterpart to #1372. @nikhilnanivadekar@donraab if you gentlemen agree this is worth pursuing, I could solve it in a similar manner.
The code currently in
withAll
on both mutable and immutable implementations callstoArray
onIntStream
which if the Stream is very large can be extremely expensive.Current mutable factory code:
Current immutable factory code:
It would be much better to simply iterate over the Stream and push the results to a IntArrayStack.
The text was updated successfully, but these errors were encountered: