Series.sortValues: LSD radix sort on IEEE-754 transformed keys#226
Merged
Series.sortValues: LSD radix sort on IEEE-754 transformed keys#226
Conversation
Replace Float64Array comparator sort with a callback-free LSD radix sort. Eliminates ~1.6M JS comparator invocations at n=100k (the dominant bottleneck). Module-level ping-pong buffers avoid per-call allocation. IEEE-754 transform maps float64 to sortable uint64 keys. String/mixed fallback unchanged. Run: https://github.com/githubnext/tsessebe/actions/runs/24921830984 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Evolve Series.sortValues for improved performance
Series.sortValues: LSD radix sort on IEEE-754 transformed keys
Apr 25, 2026
Contributor
|
@copilot fix tests |
Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/2bd09cf8-6acb-4a34-94b0-e847e4b272ba Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Contributor
Author
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.
Autoloop iteration 12 for the
tsb-perf-evolveprogram, targetingSeries.sortValuesto close the gap with pandasSeries.sort_valueson the n=100k benchmark (best so far: 27.999×).Changes
src/core/series.ts: Replace comparator-based sort with an LSD 8-pass radix sort over IEEE-754 bit-transformed keys, eliminating ~1.6M JS comparator callbacks at n=100k.Patch sourced from the
agentartifact of workflow run 24921830984, applied viagit am --3wayafter the original push failed.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/githubnext/tsessebe/actions/runs/24921830984/artifacts/usr/bin/gh gh run download 24921830984 -n agent -D /tmp/agent-24921830984 -R githubnext/tsessebe(http block)If you need me to access, download, or install something from one of these locations, you can either: