switch order of reads and writes, process as much incoming data as possible before output
switch order of reads and writes, process as much incoming data as possible before output

dominictarr/epidemic-broadcast-trees