eigenein / my-iot-rs

Yet another home automation (alpha)
https://eigenein.github.io/my-iot-rs/html
MIT License
32 stars 5 forks source link

Bus listener consumes too much CPU #28

Closed eigenein closed 4 years ago

eigenein commented 4 years ago

On my Raspberry Pi Zero W every for message in rx loop consumes 21-22% CPU load for nothing. It would be nice to decrease that, though I don't know yet how.

eigenein commented 4 years ago

Gonna try naive vector of crossbeam channels and sending a copy to each tx. Additional advantage is getting rid of extra dependency.

eigenein commented 4 years ago

That was fixed with the above solution. my-iot processes now consume pretty much nothing.