Improve performance of `merge_percentiles` (#7172)
Improve performance of `merge_percentiles` (#7172)

* Add array_safe function supporting like= kwarg

* Support for like= in percentile

* Add CuPy tests for percentiles

* Fix array_like_safe for NumPy < 1.20

* Improve percentile perf

* Generically rebuild a collection with different keys (#7142)

* Add array_safe function supporting like= kwarg

* Support for like= in percentile

* Add CuPy tests for percentiles

* Fix array_like_safe for NumPy < 1.20

* Improve percentile perf

* Remove note comparing np/merge_sorted

* Update low-level graph spec to use any hashable for keys (#7163)

* Remove unused merge_sorted

Co-authored-by: Peter Andreas Entschev <4b8373d016f277527198385ba72fda0feb5da015@entschev.com>
Co-authored-by: Ashwin Srinath <6e3b8fb301ad66685243c6e4b082742655a1f16f@users.noreply.github.com>
Co-authored-by: crusaderky <9594c47c41d10b12ba12dfa02a6d512a5f2b5f67@gmail.com>
Co-authored-by: James Bourbeau <d47a96e8b557881d8d6a5263afaffb9cba464dc8@users.noreply.github.com>
dask/dask,jakirkham/dask,blaze/dask,blaze/dask,dask/dask,jakirkham/dask