Efficiently assembling a selection from multiple arrays will require
some care -- our current implementation of Take involving ChunkedArray
arguments is not too efficient, and they will need some rewriting for
efficiency at some point in the future. Using some combination of
Concatenate and Take may yield a working solution but probably not a
computationally optimal one

On Fri, Jun 26, 2020 at 3:07 PM Antoine Pitrou <solip...@pitrou.net> wrote:
>
> On Fri, 26 Jun 2020 13:56:26 -0400
> Radu Teodorescu <radukay...@yahoo.com.INVALID> wrote:
> > Looks like Concatenate is my best bet if I am looking at putting together 
> > ranges, certainly doesn’t look as neatly packaged as Take, but this might 
> > be the right tool for this job.
>
> Yes, you could Slice the array and then Concatenate the slices.
> Note that slicing will keep the entire buffers alive, not only the
> range that's being sliced, so it might be suboptimal if you only
> keep a small part of the original values.
>
> Regards
>
> Antoine.
>
>

Reply via email to