From a25aeadee55630760b521176d0813d12eebae8c8 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 19 Oct 2022 10:11:48 +0100 Subject: 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 --- runtime/linear_alloc.h | 1 - 1 file changed, 1 deletion(-) (limited to 'runtime/linear_alloc.h') 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; -- cgit v1.2.3-59-g8ed1b