Skip to content

Commit f4ba5c8

Browse files
committed
Mention that ProGuard inlines accessors.
Bug: http://code.google.com/p/android/issues/detail?id=27775 Change-Id: I6d8eaf41e3b7de30a9ef0cd03e3d6a9eec92c063
1 parent aa99729 commit f4ba5c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/html/guide/practices/design/performance.jd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ accessing a local), direct field access is about 7x faster than invoking a
180180
trivial getter. This is true in Froyo, but will improve in the future when
181181
the JIT inlines getter methods.</p>
182182

183+
<p>Note that if you're using ProGuard, you can have the best
184+
of both worlds because ProGuard can inline accessors for you.</p>
185+
183186
<a name="use_final" id="use_final"></a>
184187
<h2>Use Static Final For Constants</h2>
185188

0 commit comments

Comments
 (0)