Optimize allocation rate for int64 array in hex function#16483
Optimize allocation rate for int64 array in hex function#16483Fly-Style wants to merge 1 commit into
int64 array in hex function#16483Conversation
|
I think this is probably faster! Do we have any benchmarks for this to show it? |
|
@Dandandan hi, Daniël! On my way to benchmark it :) |
|
Hm, interestingly, the speedup is not higher than I expected... Benchmark results: Hardware: MBP m3 pro Benchmark code: Details |
@Fly-Style I think you should be benchmarking raw Int64Arrays instead of DictionaryArrays 🤔 |
|
Closing this as stale; feel free to reopen it when it becomes active again |
Which issue does this PR close?
Comment from #15947 regarding potentially optimized memory usage #15947 (comment)
Rationale for this change
iter().map(...).collect()introduces intermediate allocations and this patch optimizes this behavior by reducing buffer allocation only once specifically of hex computation forint64.