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
"Offset invariant failure: offset for slot {} out of bounds: {} > {}",
i, start_offset, offset_limit))
);
}
if end_offset > offset_limit {
In each iteration, we fully check start_offset and end_offset, which means that all elements (except the first and the last) in the offsets_buffer are checked twice. This is somewhat wasteful.
Describe alternatives you've considered
Hoist the to_usize() checking and offset_limit checking outside the zip iteration.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
arrow-rs/arrow/src/array/data.rs
Lines 1057 to 1079 in b4642ec
In each iteration, we fully check
start_offset
andend_offset
, which means that all elements (except the first and the last) in theoffsets_buffer
are checked twice. This is somewhat wasteful.Describe alternatives you've considered
Hoist the
to_usize()
checking andoffset_limit
checking outside the zip iteration.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: