summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorSergio Giro <sgiro@google.com>2016-05-13 16:34:46 +0100
committerSergio Giro <sgiro@google.com>2016-05-17 14:39:44 +0100
commitb07595d1941a25b5f82c62f9b7099c3c77d06056 (patch)
treec1bcbb4de3c4010df8376f336ec4a21bb5bb48a9 /rs/java/android/renderscript/RenderScript.java
parenta5ca0ca8860ac99eaa2ad7c959fd4e04d331153e (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() . (cherry picked from commit 6cb7b1c4765e9bc5175056826523dbd88426e9aa) Bug: 28545496 Change-Id: Ic5aab3ece609d9fef06fee4ccb83d8371af075b2
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions