summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_analysis.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-04-08 09:16:01 +0000
committer Vladimir Marko <vmarko@google.com> 2024-04-08 13:15:12 +0000
commit68e9af2dd02a63d0b4f0bebabc4d76c91e2d84e0 (patch)
treee7096115d32e16b335e8baeeae86271d828e9253 /compiler/optimizing/loop_analysis.h
parentcfff041514b432f245907d0d1e0c10948759ffc9 (diff)
ART Faster `LinkCode()` in `ClassLinker`.
Make `LinkCode()` a member of `ClassLinker` and speed it up by avoiding a linear (but fast) method code lookup using the `BitVector::NumSetBits()`, avoiding related function call overhead as well as pulling some invariant checks out of the calling loops and eliminating redundant checks. For a test class with 1000 unannotated static methods and 400 @NeverCompile static methods, this change reduces the time needed by `ClassLinker::LoadClass()` by roughly 25%. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 329196666 Change-Id: Ifeae520113594acae2e5c19ba746f11ede2dfac2
Diffstat (limited to 'compiler/optimizing/loop_analysis.h')
0 files changed, 0 insertions, 0 deletions