summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-04-04 17:53:54 -0700
committerJosh Gao <jmgao@google.com>2018-04-05 15:13:30 -0700
commit218f766e21bf7cfe3cb45c3c34a951cb719c1d57 (patch)
tree703cfb2802593f8e7fbf6cec7270e68ea694d0ca /libutils/Unicode.cpp
parent9c59649e0bb7ca85929e075c923af8461665cc8a (diff)
adbd: configure jemalloc to not immediately purge.
Profiling of adb_benchmark revealed that something like half of the CPU time was being spent in malloc and free, which was odd because the benchmark repeatedly mallocs and frees allocations of the same size. It turns out that our default configuration of jemalloc will purge after every free. Configure jemalloc to not do this, for gains of over 100% on adb_benchmark, and up to 25% (on walleye USB3) in real-life. Test: adb_benchmark Change-Id: I602dd1645c3d21709c7f6a78903511ce4d576558
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions