summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/3/changes
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2010-11-17 17:46:42 -0800
committerJesse Wilson <jessewilson@google.com>2010-11-18 23:06:50 -0800
commit9d9b4e70a1e7f9ffb6cedd8a86fdd926f2a28202 (patch)
treeeb3e42e394a5b9e35f8ef40614815a591d421336 /docs/html/sdk/api_diff/3/changes
parent762b33f9494ba48aa1be3701d345b692e8432af9 (diff)
Decode JSON literal types eagerly and with our own decoder.
Previously we relied on Double.parseDouble() to decode tokens. Since that method is expensive, we deferred calling it unless absolutely necessary. Now we decode the literal type immediately. For efficiency we decode the token right out of the char buffer. This makes things more complicated but it saves many calls to charAt(). With this change overall performance is 7% faster for JSON documents cited in the bug. benchmark run ms linear runtime % GsonParseFull no switch, no int parse 309 ============================ 93% GsonParseFull baseline 330 ============================== 100% http://b/3201883 Change-Id: I436b6769956b1357a17c807a327d3a234691c73f
Diffstat (limited to 'docs/html/sdk/api_diff/3/changes')
0 files changed, 0 insertions, 0 deletions