| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This matches Chrome's behavior.
Bug: 13246961
Change-Id: I1954da3116a1759cb650bffed558dced5770e3ec
|
|
|
|
|
|
|
| |
This increases speed of CipherInputStreamBenchmark from 606ms to 28.5ms.
Bug: 12246774
Change-Id: If61c0a055fe1b8e87909711b15d0441fcdbe46c7
|
|
|
|
| |
Change-Id: I3c939e9275ba8f1d00342d1f83c6fdaf110f2317
|
|\
| |
| |
| |
| | |
* commit 'eaa0add6aaa503221a530d346a3b4a066bc46449':
Minor cleanup of deepHashCode / deepEquals.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These methods used equals() comparisons where identity
checks would've sufficient. As expected, this results in a
small but measurable performance increase on both art
& dalvik.
---------------------- After --------------
ART:
arrayLength benchmark us linear runtime
1 DeepHashCode 8.08 =
1 Equals 17.68 =
4 DeepHashCode 8.63 =
4 Equals 18.20 =
16 DeepHashCode 19.59 =
16 Equals 41.19 =
256 DeepHashCode 255.41 =
256 Equals 483.61 ==
2048 DeepHashCode 2321.91 ==============
2048 Equals 4932.40 ==============================
Dalvik:
arrayLength benchmark us linear runtime
1 DeepHashCode 32.7 =
1 Equals 65.3 =
4 DeepHashCode 34.4 =
4 Equals 67.7 =
16 DeepHashCode 76.0 =
16 Equals 142.8 =
256 DeepHashCode 755.6 =
256 Equals 1515.6 ===
2048 DeepHashCode 6915.4 ===============
2048 Equals 13786.6 ==============================
------------------------ Before --------------------
Art:
arrayLength benchmark us linear runtime
1 DeepHashCode 8.13 =
1 Equals 17.86 =
4 DeepHashCode 8.63 =
4 Equals 18.92 =
16 DeepHashCode 19.59 =
16 Equals 40.89 =
256 DeepHashCode 253.88 =
256 Equals 477.02 ==
2048 DeepHashCode 2795.26 ================
2048 Equals 4962.11 ==============================
Dalvik:
arrayLength benchmark us linear runtime
1 DeepHashCode 32.8 =
1 Equals 66.7 =
4 DeepHashCode 34.4 =
4 Equals 70.1 =
16 DeepHashCode 74.1 =
16 Equals 147.9 =
256 DeepHashCode 805.0 =
256 Equals 1573.2 ===
2048 DeepHashCode 7253.4 ===============
2048 Equals 14349.8 ==============================
bug: 9320068
Change-Id: Id73bf38dd0777b2ec9004a2941523d082bbc74c9
|
|\ \
| |/
| |
| |
| | |
* commit '7e528a4abc3001c269142c4e3b8e17427d932ba0':
Improve URI.equals performance.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The main improvement is that we're vastly reducing
the amount of garbage this method creates.
Also, get rid of some incorrect checks and add a new
benchmark test case.
Before vs. After:
URI Equals 1540.1 =
URI EqualsWithHeavilyEscapedComponent 11921397.1 ==============================
URI Equals 1337.2 =
URI EqualsWithHeavilyEscapedComponent 588934.3 ==============================
Change-Id: I9ddb87b8267f0ac6a3ac85c2989cc0dd305ef6a1
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Based on measurements, copy char by char for arrays of length <= 64.
- With this change, the Ritz MemAllocBench got ~25% faster on Nexus 4
and ~20% faster on host.
- This change only handles arraycopy calls in the core libraries and
char arrays with the rest future work.
Bug: 7103825
(cherry picked from commit a3eb10feba1c3479ad99ef5c5323d011a5365f4b)
Change-Id: Ic002ced3bc2f2a682cd4b8cec07ede990edd7463
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Brings the time down from 7ms to 7us for a cache hit on Nexus 4.
Bug: 11447043
Change-Id: I7cfc055c264ce49dadc72b5acdc2f2b0b339a5a1
|
|/
|
|
|
|
|
|
| |
This in preparation for removing UnsafeBytesequence.
Split into a separate change so that it's easier to
resurrect if required.
Change-Id: I24b8cd6a56a37d4efc23cfea0b59adc0f065f5a2
|
|
|
|
| |
Change-Id: Ifb05ee34f4398ad61e047d1a7ecfcea9a787b6ca
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
them.
It takes ~1ms to create a DateIntervalFormat on a z620, and around 8ms on a
current mobile device (Nexus 4). Add a small cache of recently-used formatters,
using a big lock rather than per-thread caches since this typically only
happens on the UI thread anyway, and because all the other frameworks date/time
formatting is behind a single lock too.
Bug: 10696944
Change-Id: I8ccbe0b31b722a95a08fbc5a119173b7a0f44807
|
|
|
|
|
|
| |
(cherry picked from commit 50b871d4eb3b42a8209bb4a6d54cb649f56e873f)
Change-Id: I67e7ae5de6fc3b568c34bf56706dd5146d9f2b18
|
|
|
|
|
| |
* commit '645c15629a8abdb9f3a6e428ccb393eacd933552':
Replace mentions of old JSSE package name
|
|
to use the external/mockwebserver.
Change-Id: I48ec32e94f992fe570a6d729bb38971b3f211188
|