Skip to content

sorted_copy is the builtin now - #2

Merged
martin-k-m merged 2 commits into
mainfrom
perf/sort-is-a-builtin-now
Sep 3, 2026
Merged

martin-k-m merged 2 commits into
mainfrom
perf/sort-is-a-builtin-now

Conversation

@martin-k-m

Copy link
Copy Markdown
Collaborator

docs/needs.md entry 8 closes: twill 1.9.0's sort orders a list of numbers, so the insertion sort in src/bars.tw becomes one line and weft ships no sort of its own.

The old comment defended the quadratic version on the grounds that a histogram is drawn once per plot rather than per frame. That defence was fair and is no longer needed: it is not the simpler code any more, only the slower one.

CI and spool.toml move to 1.9.0 in the second commit. Six suites pass.

🤖 Generated with Claude Code

martin-k-m and others added 2 commits September 2, 2026 22:30
twill 1.9.0 orders a list of numbers, which is docs/needs.md entry 8, so
the insertion sort in src/bars.tw becomes one line and weft ships no sort
of its own.

The old comment defended the quadratic version on the grounds that a
histogram is drawn once per plot rather than per frame. That defence was
fair and is no longer needed: it is not the simpler code any more, only the
slower one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
CI installs v1.9.0 and spool.toml asks for ^1.9.0, because the sort this
branch adopts is in that release and not in the one pinned before it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@martin-k-m
martin-k-m merged commit 506883d into main Sep 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant