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
Because we need to do unsafe stores, we need to know the output size.
This leads to interface of eve::algo::copy_if(in_range, out_range, predicate).
So - what should happen if out_range doesn't have enough space to store all of the selected elements? We should stop and return where we stopped: .in = after_the_last_written, .out = out_range.end()
However, in versions of compress_copy that use compress_store computing after_the_last_written seems expensive.
Would be nice to come up with a way to return it though.
The text was updated successfully, but these errors were encountered:
Because we need to do unsafe stores, we need to know the output size.
This leads to interface of
eve::algo::copy_if(in_range, out_range, predicate)
.So - what should happen if
out_range
doesn't have enough space to store all of the selected elements? We should stop and return where we stopped:.in = after_the_last_written, .out = out_range.end()
However, in versions of
compress_copy
that usecompress_store
computingafter_the_last_written
seems expensive.Would be nice to come up with a way to return it though.
The text was updated successfully, but these errors were encountered: