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

Optimizations: Part 4 #87

Merged
merged 7 commits into from
Jul 21, 2022
Merged

Optimizations: Part 4 #87

merged 7 commits into from
Jul 21, 2022

Conversation

SteveMacenski
Copy link
Collaborator

@SteveMacenski SteveMacenski commented Jul 21, 2022

Moving sum to immediate speeds things up quite a bit, which various documentation on xtensor also shows.

Evaling on the path align critic also helps uniquely to that critic, I suspect because of the manual looping calls only some of the values and computed at-time so it doesn't get to use vectorization optimizations.

The approximate atan2 also helps lower the runtime of the atan2 operation by about 2x steady state and its contribution to jitter. I see you have a PR implementing it differently, which I'll test, but this does not change the existing behavior and improves things quite a bit. There's still contribution to jitter, but usually on the order of 2-4ms where before it could get upwards of 6-10 (the rest is probably the cosine or hypot). Doesn't help with any other sources of jitter. Incremental progress.

Removed dt, as it is never used or referenced

@SteveMacenski SteveMacenski marked this pull request as ready for review July 21, 2022 00:22
@SteveMacenski SteveMacenski merged commit 3417707 into develop Jul 21, 2022
@SteveMacenski SteveMacenski deleted the opt4 branch July 21, 2022 20:40
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