diff options
author | Sergio Giro <sgiro@google.com> | 2016-05-13 16:34:46 +0100 |
---|---|---|
committer | Sergio Giro <sgiro@google.com> | 2016-05-17 10:02:09 +0000 |
commit | 6cb7b1c4765e9bc5175056826523dbd88426e9aa (patch) | |
tree | 708a3df491ae9539452e7dea54d762598c279e4e /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 94442315502026a7b3a8a8c1ed74e7794670b0b0 (diff) |
ZygoteInit: warm up JCA providers during preload
This makes the time spent in the first call of an app to
SSLSocketFactory.getDefault() drop from ~240 ms to ~50 ms. In M
it was around ~6ms. This is due to the fact that, while instantiating
the default factory, all providers are initialized.
In order to obtain the timings above, I created an app calling
SSLSocketFactory.getDefault in onCreate and timed it
with System.currentTimeMillis() .
Bug: 28545496
Change-Id: I650d4b0435e67e481a41e02b0b538ce5cc993fa3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions