[python][node-red] ad/da nodes slowing down node-red significantly
hi!
i have installed waveshare node like described here: https://flows.nodered.org/node/node-red-contrib-waveshare-shield-adda-11010
after a reboot, i tried to read the first channel (adc0) with an analog input node. already with the first node i noticed that the "deploy" took much longer than normal. with every further node node-red slows down further, because every trigger to a node launches a new python process (ads1256.py).
htop shows, that the python3 script causes relative much cpu usage:
16335 pi 20 0 14960 7892 5144 R 23.8 0.2 0:00.36 python3 /home/pi/.node-red/node_modules/node-red-contrib-waveshare-shield-adda-11010/ads1256.py --mode analog --port 0 --gain 1 --rate 10 --buffer off --sdcs off
so i have to disable all waveshare adda nodes to run node-red properly again.
i have also updated my whole system as follows:
Versions:
Raspbian GNU/Linux 10 (buster)
kernel: 5.10.63-v8+
node-red: 2.2.2
npm: 6.14.16
node.js: v12.22.12