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

Improve C library performance for 2in13 V2 #160

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jchnkl
Copy link

@jchnkl jchnkl commented May 7, 2021

The C libraries can be improved in a similar way to #104 and #130.

Single byte writes in loops were replaced with their multi-bytes variations.

This results in a significant performance improvement (~100% on my Pi Zero)

In addition I've replaced printf()s with Debug() and disable the debugging flag in the Makefile because libraries in production shouldn't really write to stdout/-err.

jchnkl added 3 commits May 5, 2021 14:04
Apply the same technique from waveshareteam#104 and waveshareteam#130 to the C library.

The low level lib provides a function to send byte arrays instead of
single bytes. Where possible loops and multiple single byte send calls
were replaced with this function.
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.

1 participant