47da944f59
### What changes were proposed in this pull request? 1, add a new param `sorted` in `slice`; 2, in `VectorSlicer`, set `sorted = true` if input indices are ordered. ### Why are the changes needed? The input indices of VectorSlicer are probably ordered. VectorSlicer should use this attribute if possible. I did a simple test and `sorted = true` maybe about 70% faster than existing `slice` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? added testsuite Closes #31588 from zhengruifeng/vector_slice_for_sorted_indices. Authored-by: Ruifeng Zheng <ruifengz@foxmail.com> Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com> |
||
---|---|---|
.. | ||
src | ||
pom.xml |