node-red / node-red/node-red-nodes
Perfomance - input don't use interrupts
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 13h 57m
- Merged PRs (30d)
- 3
Description
With Bullseye RPi.GPIO is used. With Bookworm it uses rpi-lgpio and lgpio.
lgpio no longer uses interrupts for inputs. This means some cpu seconds for every input.
The official gpiod still uses interrupts. This means zero cpu when monitoring inputs.
Is there a chance to change the underline library?
By the way pigpiod is also polling the imputs ...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the input-monitoring behavior of RPi.GPIO on Bullseye with rpi-lgpio/lgpio on Bookworm, and evaluate the official gpiod and pigpiod options mentioned in the issue. Determine whether the underlying library can be changed to interrupt-based monitoring with zero CPU usage, then define the supported library and compatibility requirements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100