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

Attempt to improve CPU use by declaring things const #2210

Merged
merged 3 commits into from
May 22, 2018

Conversation

mlyle
Copy link
Member

@mlyle mlyle commented May 20, 2018

Also just assume systime is milliseconds because the math before was faulty.

May improve #2200

Also avoid a copy of msg in event pumping.
@glowtape
Copy link
Member

L1690 in uavobjectmanager.c needs const.

Gives slight improvements, still not as far as reverting those commits mentioned in #2200.

Note this requires that the frequency be 1000.  Optimizer couldn't
suppress the math because of edge case when time near 0.
@mlyle
Copy link
Member Author

mlyle commented May 20, 2018

OK, one more thing to try in here.

@mlyle
Copy link
Member Author

mlyle commented May 22, 2018

I'd advocate for this to merge-- with the PIOS_Thread time change we're back to where we were originally in CPU use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants