Skip to content

Conversation

@cedrickcooke
Copy link
Collaborator

Fixes Selection.order algorithm which had exponential complexity for no good reason.

In the below video, top is before this PR and bottom is after. Uses the desktop sample app, but with the number of elements in the sine wave cranked up.

speed-differential.mp4

Briefly toyed with a direct port of D3's order function. Doing so exactly matched its output orderings, which this implementation doesn't, but both increased complexity and decreased runtime speed.

@cedrickcooke cedrickcooke requested a review from a team as a code owner December 11, 2025 01:29
@cedrickcooke cedrickcooke added the patch Changes that should bump the PATCH version number label Dec 11, 2025
@github-actions
Copy link

github-actions bot commented Dec 11, 2025

Test Results

77 tests  +5   77 ✅ +5   4s ⏱️ -1s
14 suites +1    0 💤 ±0 
14 files   +1    0 ❌ ±0 

Results for commit c08a76a. ± Comparison against base commit d275a4f.

♻️ This comment has been updated with latest results.

@cedrickcooke cedrickcooke merged commit b12c538 into main Jan 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Changes that should bump the PATCH version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants