Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[data] Optimize sample_boundaries in SortTaskSpec (#39581)
Optimize sample_boundaries in SortTaskSpec to call numpy.quantile once to get all boundaries for each column. This is much faster than the old impl when num_reducers is large (eg. 5000), because each time numpy.quantile is called it actually sorts the array and the old impl calls it num_reducers times for each column. Signed-off-by: z4y1b2 <88138737+z4y1b2@users.noreply.github.com>
- Loading branch information