-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arrowutils: add TakeList and improve TakeDict performance (#897)
This commit adds both a TakeList function to reorder arrays of type List when sorting records, and improves TakeDict performance by inserting dict values directly and subsequently indices, to avoid materializing values. This especially speeds up cases where dictionaries have a low number of distinct values. │ benchmain │ benchnew │ │ sec/op │ sec/op vs base │ Take/Dict-12 107.05µ ± 0% 79.31µ ± 0% -25.91% (p=0.000 n=10) │ benchmain │ benchnew │ │ B/op │ B/op vs base │ Take/Dict-12 133.3Ki ± 0% 133.3Ki ± 0% +0.00% (p=0.002 n=10) │ benchmain │ benchnew │ │ allocs/op │ allocs/op vs base │ Take/Dict-12 64.00 ± 0% 66.00 ± 0% +3.12% (p=0.000 n=10)
- Loading branch information
Showing
2 changed files
with
227 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters