| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Libcore class StringPool has single usage outside libcore, in framework.
As a part of api cleanup in libcore StringPool is removed from
SystemApi, thus, it is copied to com.android.internal.util package.
Bug: 154796679
Test: m droid
Test: atest FrameworksUtilTests
Change-Id: Iaa332eb8ade68f3451639bdce62d5cfea30c2f97
|
| |
|
|
|
|
|
|
|
|
|
| |
also fixing import order to get past repo hooks
Test: make ds-docs
Bug: 37077993
Change-Id: I0a0d6338f714108eb632caacc6dda4b422dc697b
Exempt-From-Owner-Approval: Docs-only change
|
| |
|
|
|
| |
Bug: https://code.google.com/p/android/issues/detail?id=65846
Change-Id: Idaa0e75fc5612550c4b9ccb9afa5535ea5b189df
|
| |
|
|
|
|
|
| |
The bug would have caused us to call fillBuffer() earlier than
necessary.
Change-Id: Ib0e4e54019394d7085913faf90c495d130e8bb75
|
| |
|
|
|
| |
Bug: http://code.google.com/p/android/issues/detail?id=18508
Change-Id: I7652080d9ab475c75d0a811a6e2ede4975ebe063
|
| |
|
|
|
|
|
| |
This is a prerequisite to skipping the BOM if it exists.
Bug: http://code.google.com/p/android/issues/detail?id=18508
Change-Id: I38b1c46f246d8526fa20859b50ca3e25c9f9b9d1
|
| |
|
|
|
|
|
|
| |
This yields a 10% improvement in parsing both Twitter and Google Reader
streams.
Change-Id: Ifc238777e929b5b3e9a4480098b315e418378f8b
http://b/3201883
|
| |
|
|
| |
Change-Id: Id81fb44e26f895d7ac6ecf87eddfa9d14c643159
|
| |
|
|
| |
Change-Id: I86c12a123080cc06ab23d11d1563bb52c5902517
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: Ife519f755b1974adee13553cd4dfa2b15dd23aac
|
| |
|
|
|
|
|
|
| |
I ran a quick benchmark on a desktop VM: this shortened the time
to parse a complete JSON document by ~25%.
Change-Id: Id479734654addfe86f4bf251f0dd6e78843023bf
http://microbenchmarks.appspot.com/run/jessewilson@google.com/twitter.JsonParseBenchmark/366001
|
| |
|
|
|
|
|
| |
Also replacing setIndentSpaces() with a more general purpose method,
setIndent().
Change-Id: I64fbe4901aec23de5392362c1d40b77bc2b5566b
|
|
|
Change-Id: Iefa7ee44ddacbe22ea9ebca3165ac59030659bf2
|