Closed

Description
The polling of bridge.py consumes about 90% of the CPU (AR9331) on my ArduinoYun.
A quick-fix for this issue can be time.sleep(0.01)
, which brings down the value to about 30%.
The adopted version of bridge.py:
...
pr = packet.PacketReader(cp)
start_time = time.time()
with cbreak():
#while time.time() - start_time < 100:
while True:
res = pr.process()
if res == False:
break
time.sleep(0.01)
Metadata
Metadata
Assignees
Labels
No labels