Skip to content

Speed up polar speed lookup with bisection - #28

Merged
dakk merged 1 commit into
dakk:masterfrom
scyrock:polar_bisect_speedup
Jul 6, 2026
Merged

Speed up polar speed lookup with bisection#28
dakk merged 1 commit into
dakk:masterfrom
scyrock:polar_bisect_speedup

Conversation

@scyrock

@scyrock scyrock commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This PR optimizes Polar.get_speed() by replacing repeated linear scans over TWS and TWA tables with bisection-based index lookup.
The change keeps interpolation behavior for in-domain polar table values while reducing lookup overhead in routing workloads where get_speed() is called many times.

@dakk
dakk merged commit 32dd612 into dakk:master Jul 6, 2026
8 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.

2 participants