Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

pyboard.py

Blame
    • Damien George's avatar
      56f6ceba
      tools/pyboard.py: Don't accumulate output data if data_consumer used. · 56f6ceba
      Damien George authored
      Prior to this patch, when a lot of data was output by a running script
      pyboard.py would try to capture all of this output into the "data"
      variable, which would gradually slow down pyboard.py to the point where it
      would have large CPU and memory usage (on the host) and potentially lose
      data.
      
      This patch fixes this problem by not accumulating the data in the case that
      the data is not needed, which is when "data_consumer" is used.
      56f6ceba
      History
      tools/pyboard.py: Don't accumulate output data if data_consumer used.
      Damien George authored
      Prior to this patch, when a lot of data was output by a running script
      pyboard.py would try to capture all of this output into the "data"
      variable, which would gradually slow down pyboard.py to the point where it
      would have large CPU and memory usage (on the host) and potentially lose
      data.
      
      This patch fixes this problem by not accumulating the data in the case that
      the data is not needed, which is when "data_consumer" is used.