Conversation
…Index fast path - Merge all 8 histogram passes into the partition/init loop, eliminating one O(n) scan over the AoS buffer (~300k Uint32 reads saved per call) - Use accumulated stride counter (si += 3) in scatter and gather loops instead of i*3 multiply (800k multiplies saved per call) - RangeIndex fast path: bypass 100k bounds-checked at() calls from index.take(perm) when the index is a default 0-based RangeIndex Run: https://github.com/githubnext/tsessebe/actions/runs/25363647445 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
tsb-perf-evolve — Performance Optimization: sortValues
🤖 This PR is maintained by Autoloop. Each accepted iteration adds a commit to this branch.
Program Goal: Minimize
tsb_mean_ms / pandas_mean_msratio forSeries.sortValueson n=100k numeric data. Lower is better;< 1.0means tsb beats pandas.Current Best Metric: 21.048 (tsb=112.50ms / pandas=5.34ms)
Issue: #189
Iteration 35 (latest)
Three micro-optimizations on the 8-pass LSD radix sort:
si += 3replacesi * 3in scatter and gather loops — avoids 800k multiplies per call.at()calls fromindex.take(perm)by constructing the output Index directly.Branch:
autoloop/tsb-perf-evolveWarning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
releaseassets.githubusercontent.comSee Network Configuration for more information.