Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increased speed of generating and querying splines. #72

Merged
merged 1 commit into from
Aug 5, 2015

Conversation

gregharding
Copy link
Contributor

Increased speed of generating and querying splines (excluding straight-line solver) by removing the dictionary-based lookup table as it wasn't really used like a dictionary in the getPointOnPath(t) method. The replacement is a list of segment structs that is iterated over, avoiding the previous dictionary key copy-to-new-array during every getPointOnPath(t) query.

nb. this change does not affect the straight-line solver which still uses dictionary lookups.

There is a basic test included that compares current vs new spline building and querying.

prime31 added a commit that referenced this pull request Aug 5, 2015
Increased speed of generating and querying splines.
@prime31 prime31 merged commit fbcbc4b into prime31:master Aug 5, 2015
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.

None yet

2 participants