commit | 1ce48dab742b0808ca8430ee0954216277253bb2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Dec 16 15:37:18 2009 -0800 |
committer | Elliott Hughes <enh@google.com> | Wed Dec 16 18:19:05 2009 -0800 |
tree | efc6912ba7daa19583aad53a7e0c9e9aa02b3980 | |
parent | d092359a19e861b1f36a01507b13da5f51b93584 [diff] |
Make java.lang.Character fast. This patch reinstates some of the upstream ASCII fast paths, adds some new ones, and forwards all char overloads to the int methods (placing the fast paths in the int overload), so using the int overload isn't automatically 3x slower than the char overload even for the same characters. See the bug for benchmark results. The ASCII speedups are between 2x and 4x. Bug: 2295801