diff options
author | 2022-10-19 10:11:48 +0100 | |
---|---|---|
committer | 2022-10-24 12:57:49 +0000 | |
commit | a25aeadee55630760b521176d0813d12eebae8c8 (patch) | |
tree | 8779544f31bf80d5b9c68d6eaa2bd4dbf737397e /runtime/linear_alloc.h | |
parent | d9e355921fb2f039c3a19a8cf23d78ab87c1f390 (diff) |
Allocate dex cache arrays at startup.
And deallocate them post startup.
Local measurements for app startup average of 1000 runs
on Pixel 5 and master:
- youtube: 1035 -> 985
- maps: 1142 -> 877
Test: test.py
Change-Id: I4fb6e7e2cecdea8bf977ef3b59d47efd0b8b9b74
Diffstat (limited to 'runtime/linear_alloc.h')
-rw-r--r-- | runtime/linear_alloc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/linear_alloc.h b/runtime/linear_alloc.h index fe92d19ce5..735372151f 100644 --- a/runtime/linear_alloc.h +++ b/runtime/linear_alloc.h @@ -61,7 +61,6 @@ class TrackingHeader final { std::ostream& operator<<(std::ostream& os, LinearAllocKind value); -// TODO: Support freeing if we add class unloading. class LinearAlloc { public: static constexpr size_t kAlignment = 8u; |