commit | 08e0023c59828a443d993c7e6cb43bf9d197506a | [log] [tgz] |
---|---|---|
author | Android (Google) Code Review <android-gerrit@google.com> | Tue Nov 17 16:55:29 2009 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Nov 17 16:55:29 2009 -0800 |
tree | d4a0d108cbadcf3bad85d19530e19dba93dca892 | |
parent | 28ac5b8cfd52d1902a132a5faf8f102a8b33d6c2 [diff] | |
parent | bb3b16f46964155b9ceead25db1c0e3841ce61a7 [diff] |
Merge change I42d17725 into eclair-mr2 * changes: Cache NumberFormat and DecimalFormatSymbols objects in a ThreadLocal, so they can be reused between multiple instances of Formatter on the same thread. This speeds up my unscientific benchmark (a number of printouts involved in a debugging diagnostics output) by 3x, and should have a similar impact on anyone who uses String.format(), PrintWriter.format(), and the like.