@@ -26,7 +26,7 @@ use vortex_array::VortexSessionExecute;
2626use vortex_array:: array_session;
2727use vortex_array:: arrays:: ConstantArray ;
2828use vortex_array:: arrays:: FixedSizeListArray ;
29- use vortex_array:: arrays:: PiecewiseSequentialArray ;
29+ use vortex_array:: arrays:: PiecewiseSequenceArray ;
3030use vortex_array:: arrays:: PrimitiveArray ;
3131use vortex_array:: arrays:: fixed_size_list:: FixedSizeListArrayExt ;
3232use vortex_array:: dtype:: IntegerPType ;
@@ -143,7 +143,7 @@ fn take_fsl_f16_force_per_index<const LIST_SIZE: usize>(bencher: Bencher, num_in
143143}
144144
145145#[ divan:: bench( args = NUM_INDICES , consts = F16_STRATEGY_LIST_SIZES ) ]
146- fn take_fsl_f16_force_piecewise_sequential < const LIST_SIZE : usize > (
146+ fn take_fsl_f16_force_piecewise_sequence < const LIST_SIZE : usize > (
147147 bencher : Bencher ,
148148 num_indices : usize ,
149149) {
@@ -154,7 +154,7 @@ fn take_fsl_f16_force_piecewise_sequential<const LIST_SIZE: usize>(
154154 . counter ( BytesCount :: of_many :: < f16 > ( num_indices * LIST_SIZE ) )
155155 . with_inputs ( || ( & fsl, & indices, SESSION . create_execution_ctx ( ) ) )
156156 . bench_refs ( |( array, indices, execution_ctx) | {
157- take_fsl_f16_piecewise_sequential_strategy :: < LIST_SIZE > ( array, indices)
157+ take_fsl_f16_piecewise_sequence_strategy :: < LIST_SIZE > ( array, indices)
158158 . into_array ( )
159159 . execute :: < RecursiveCanonical > ( execution_ctx)
160160 . unwrap ( )
@@ -211,7 +211,7 @@ fn take_fsl_f16_per_index_strategy<const LIST_SIZE: usize, E: IntegerPType>(
211211 }
212212}
213213
214- fn take_fsl_f16_piecewise_sequential_strategy < const LIST_SIZE : usize > (
214+ fn take_fsl_f16_piecewise_sequence_strategy < const LIST_SIZE : usize > (
215215 array : & FixedSizeListArray ,
216216 indices : & Buffer < u64 > ,
217217) -> FixedSizeListArray {
@@ -223,11 +223,17 @@ fn take_fsl_f16_piecewise_sequential_strategy<const LIST_SIZE: usize>(
223223 let run_count = starts. len ( ) ;
224224 let starts = PrimitiveArray :: from_iter ( starts) . into_array ( ) ;
225225 let lengths = ConstantArray :: new ( LIST_SIZE as u64 , run_count) . into_array ( ) ;
226+ let multipliers = ConstantArray :: new ( 1u64 , run_count) . into_array ( ) ;
226227
227- // SAFETY: benchmark indices are generated in-bounds, lengths is a non-nullable unsigned
228- // constant, and output length is exactly `indices.len() * LIST_SIZE`.
228+ // SAFETY: benchmark indices are generated in-bounds; lengths and multiplier 1 are
229+ // non-nullable unsigned constants; output length is exactly `indices.len() * LIST_SIZE`.
229230 let element_indices = unsafe {
230- PiecewiseSequentialArray :: new_unchecked ( starts, lengths, indices. len ( ) * LIST_SIZE )
231+ PiecewiseSequenceArray :: new_unchecked (
232+ starts,
233+ lengths,
234+ multipliers,
235+ indices. len ( ) * LIST_SIZE ,
236+ )
231237 }
232238 . into_array ( ) ;
233239 let elements = array. elements ( ) . take ( element_indices) . unwrap ( ) ;
0 commit comments