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
{{ message }}
Repository navigation
Commit 8e80b47
Browse filesBrowse the repository at this point in the historyBrowse files
perf[vortex-array]: use from_trusted_len_iter in primitive casts
Some of our scan profiles show 10% of scan cpu time is spent in integer
widening casts (nullable dictionary codes). This commit simplifies primitive
casts by hoisting a lot of hot loop branching logic.
Specifically, this commit relies on values_fit_in to verify representability so
that we can avoid a potential validity and error check in the hot loop.
Additionally from_trusted_len_iter lets the destination BufferMut optimize the
actual cast instead of using push_unchecked for each element.
Signed-off-by: Alfonso Subiotto Marques <alfonso.subiotto@polarsignals.com>
0 commit comments