From ded8a28a221cdc2f1fb34409ae2fa9185491e9a3 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 13 Feb 2024 17:56:36 +0000 Subject: Increase inlining threshold for baseline. Gives better results when scrolling. Reduces jank on compose view scrolling for 4 iterations: - For Go Mokey: - Before: ~937 frames drawn / ~5.52% janky frames - After: ~1014 frames drawn / ~4.54% janky frames - For Pixel 8 pro: - Before: ~2446 frames drawn / ~0.67% janky frames - After: ~2449 frames drawn / ~0.51% janky frames Test: test.py Bug: 313040662 Change-Id: I21492e103a9dc4658aa89dfb12b86eb30680564f --- compiler/driver/compiler_options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index eaf9cc2fdb..6b3e26fc70 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -69,7 +69,7 @@ class CompilerOptions final { static constexpr size_t kUnsetInlineMaxCodeUnits = -1; // We set a lower inlining threshold for baseline to reduce code size and compilation time. This // cannot be changed via flags. - static constexpr size_t kBaselineInlineMaxCodeUnits = 8; + static constexpr size_t kBaselineInlineMaxCodeUnits = 14; enum class CompilerType : uint8_t { kAotCompiler, // AOT compiler. -- cgit v1.2.3-59-g8ed1b