summaryrefslogtreecommitdiffstats
path: root/luni/src/test/java/libcore/javax/crypto/CipherTest.java
diff options
context:
space:
mode:
authorKevin Hart <khart@codeaurora.org>2016-02-11 12:04:26 -0800
committerSteve Kondik <steve@cyngn.com>2016-04-20 15:09:18 -0700
commit3a5c4a7f6a52c6e6f71616940920cb647aafff2b (patch)
tree787c15d6458b58a7468eb4ff4633d07b4625b259 /luni/src/test/java/libcore/javax/crypto/CipherTest.java
parent45b2d5a055d63d261ec908e1dd35cf5589827384 (diff)
downloadlibcore-3a5c4a7f6a52c6e6f71616940920cb647aafff2b.zip
libcore-3a5c4a7f6a52c6e6f71616940920cb647aafff2b.tar.gz
libcore-3a5c4a7f6a52c6e6f71616940920cb647aafff2b.tar.bz2
XML Pull Parser optimizations
This patch includes three improvements to the pull parser. 1. readValue now only uses the stringPool for all-whitespace strings. Values are generally not repeated, and this function can thrash the string pool in some cases 2. Added a fast path for the normal, correct, end-tag case. This avoids a hash and lookup in the stringPool 3. While parsing an element (not attribute) name, the namespace and post-namespace strings are generated using the stringPool. This saves the cost of calling String.substring in adjustNsp. Change-Id: I69482a49bf52cb72d48bcbecd30fb56effe6a4ef
Diffstat (limited to 'luni/src/test/java/libcore/javax/crypto/CipherTest.java')
0 files changed, 0 insertions, 0 deletions