Skip to content

Attempt to improve CPU use by declaring things const#2210

Merged
glowtape merged 3 commits intod-ronin:nextfrom
mlyle:mpl-constipation
May 22, 2018
Merged

Attempt to improve CPU use by declaring things const#2210
glowtape merged 3 commits intod-ronin:nextfrom
mlyle:mpl-constipation

Conversation

@mlyle
Copy link
Copy Markdown
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
Copy Markdown
Member

L1690 in uavobjectmanager.c needs const.

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

@mlyle mlyle force-pushed the mpl-constipation branch from b82a0e9 to 8a61ba1 Compare May 20, 2018 17:53
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
Copy Markdown
Member Author

mlyle commented May 20, 2018

OK, one more thing to try in here.

@mlyle
Copy link
Copy Markdown
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