diff options
| author | Josh Gao <jmgao@google.com> | 2017-05-03 14:23:09 -0700 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2017-05-04 16:03:12 -0700 |
| commit | 6f46e6b912b2cd30a699757c3f4bbf9b679e2b79 (patch) | |
| tree | d1306f602ab118ec0e1462acc6a4cbd16aff97ff /trusty/coverage/coverage_test.cpp | |
| parent | 4c936397c1dc8b127d7e27a9ee02ff7d0deef785 (diff) | |
adb: initialize mDNS asynchronously.
Use fdevent_run_on_main_thread to initialize mDNS in a thread and
register an fdevent from the main thread upon success.
This reduces the startup time of `adb server` by ~3 seconds when mDNS
can't be successfully started. With an already running adb server,
`time adb server nodaemon` goes from:
adb server nodaemon 0.00s user 0.16s system 4% cpu 3.817 total
to:
adb server nodaemon 0.00s user 0.01s system 1% cpu 0.665 total
Bug: http://b/37869663
Test: `adb server nodaemon` with an existing adb server
Change-Id: Ia5a1a2a138610f3bf6792400050ca68f95ae3734
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
