commit | e5e6b0d89d8e2d9b32c0bd33298fe8de037b171b | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Fri Jul 12 14:11:54 2019 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu Nov 28 18:24:01 2019 -0800 |
tree | d29985efba87814160d22f646f3b3458a7c91a5c | |
parent | dcea54ce982a0a757199340611365b608a54c6fe [diff] |
[adb] Optimize adbd's usb reading Try to not allocate as many blocks on the heap, and reuse memory instead of copying it Get rid of unique_ptr and shared_ptr where possible, move the Block objects themselves Overall this reduces the time spent in memcpy() from 30% to 15% of the whole 'adb push' command, and gets rid of about 5% of the time spent in the malloc/free calls Test: builds Change-Id: I8995115274b6f08a4df13c58183c928ef384a767