mozilla/r2d2b2g — pull request #774 by bkase (2013-08-05 21:25:27+00:00)
Title: Improve Windows performance immensely

Busy-waiting for async reads (assuming system has 2 cores) improves the
performance due to numerous acks in ADB's protocol. Before we were waiting
100ms before every ack! (and there are a ton of acks)

If we need better performance on systems with one core, we should change
this to Sleep(1) to prevent resource starvation (the writer thread goes super slowly) but even 1ms sleeping slows down `adb push` considerably.