Repository navigation
Closes #3578: Update sort_cases_benchmark - #4650
Merged
ajpotts merged 1 commit intoJul 9, 2025
Merged
Conversation
ajpotts
force-pushed
the
3578_Update_sort_cases_benchmark
branch
2 times, most recently
from
June 23, 2025 16:24
cc85661 to
d54ef14
Compare
ajpotts
marked this pull request as ready for review
June 23, 2025 16:31
Contributor
|
Github question: any idea why the diffs show this function completely rewritten? def do_argsort(data, algo):
if isinstance(data, (ak.pdarray, ak.Strings)):
return ak.argsort(data, algo)
else:
return ak.coargsort(data, algo)The diffs disappear if I click "hide whitespace". Are there whitespace changes? I am not seeing them. :( This is not holding me up or anything, just puzzling. [after-thought:] maybe the newlines have changed from Windows to Unix or the other way? |
vasslitvinov
approved these changes
Jun 26, 2025
ajpotts
force-pushed
the
3578_Update_sort_cases_benchmark
branch
from
June 30, 2025 21:09
d54ef14 to
866ab4b
Compare
ajpotts
added this pull request to the merge queue
Jul 9, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: Enhance
sort_cases_benchmark.pywith Tuple and NumPy SupportThis PR refactors the
run_sorthelper function used throughoutsort_cases_benchmark.pyto robustly support both:(a, b))--numpy--correctness_only🔧 Key Improvements
Tuple Support for
coargsortNumPy Compatibility
np.argsortfor 1D arrays andnp.lexsortfor tuples when--numpyis enabled.to_ndarray()automaticallyCorrectness Checking
ak.is_sorted(...)Benchmark Metadata
ArkoudaorNumPy)📂 Affected Benchmarks
This update makes the sort benchmarks fully general, testable under multiple backends, and ready for continuous correctness and performance tracking.
Closes #3578: Update sort_cases_benchmark