diff options
author | Yurii Zubrytskyi <zyy@google.com> | 2019-07-12 14:11:54 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2019-11-28 18:24:01 -0800 |
commit | 5dda7f6cea2ad5c677f96071dce3584b1a34133f (patch) | |
tree | ef4492a53ba00b9a2ccfd105ce4b311e094133ea /trusty/coverage/coverage_test.cpp | |
parent | 834e4751e64bfa94c7d5a7bd929070a1a5cf0fe4 (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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions