summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorShubham Ajmera <shubhamajmera@google.com>2016-07-20 14:01:42 +0100
committerShubham Ajmera <shubhamajmera@google.com>2016-08-09 12:44:33 +0100
commit81690afd3a3da9b8dd22e74d892befb9a69dfe6f (patch)
tree4620afd6557be387a7c78a004e59271bc35b2fe5 /annotations/generate_annotated_java_files.py
parent27188dfa037e70c0aff6d952c1ccc5c041eb91d8 (diff)
Cut down on object allocation in CipherInputStream
While installing large encrypted app, GC used to collect large number of objects because when the data was being read from the input stream, it used to place the same on a new byte array leaving the last allocated array unused. The same behavior was not observed on Android N maybe due to changes in GC, however, it was creating the objects in a similar way it used to create in older versions. This increases speed of CipherInputStreamBenchmark from 54ms to 28 ms. Test: libcore.javax.crypto.CipherInputStreamTest Test: org.apache.harmony.crypto.tests.javax.crypto.CipherInputStreamTest Test: org.apache.harmony.crypto.tests.javax.crypto.CipherInputStream1Test Bug: 6478569 Change-Id: I0cf0dc37e6513c08abcf2f3077db3dc9e6395b62
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions