Right now, SerialPIO calculates parity with a bit loop that gets slower with more data bits. If you're running several soft serial ports (like 4+), it starts eating CPU for no good reason.
A small lookup table (256 bytes) could do the same job way faster, basically constant time, just a few instructions per byte versus 60+ instructions for 8-bit data for example.
Tradeoffs:
I'm happy to send a PR for this.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4