Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60c5fbc3 authored by Sarah Maddox's avatar Sarah Maddox Committed by Android Git Automerger
Browse files

am 64aec659: am 8601b1b1: Merge "Fixed a typo in Perf Tips." into lmp-dev

* commit '64aec659':
  Fixed a typo in Perf Tips.
parents 5bcc5b28 64aec659
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -388,7 +388,7 @@ was 2x slower; the actual difference was more like 6% slower. Furthermore,
the JIT makes the two effectively indistinguishable.</p>

<p>On devices without a JIT, caching field accesses is about 20% faster than
repeatedly accesssing the field. With a JIT, field access costs about the same
repeatedly accessing the field. With a JIT, field access costs about the same
as local access, so this isn't a worthwhile optimization unless you feel it
makes your code easier to read. (This is true of final, static, and static
final fields too.)