Parcel: Use @CriticalNative when possible.
- Change some methods from FastNative to CritcialNative - Change nativeGetBlobAshmemSize to CritcalNative - ParcelPerfTest.java (CorePerfTests) bullhead-userdebug + prep_buller.sh, mean(ns), changed methods only -- After timeGetDataCapacity_mean 166 +39.16% timeGetDataPosition_mean 169 +53.25% timeReadByte_mean 296 +39.86% timeReadLong_mean 284 +61.97% timeSetDataPosition_mean 173 +34.10% timeGetDataSize_mean 173 +37.57% timeReadInt_mean 284 +57.04% -- Before timeGetDataCapacity_mean 231 timeGetDataPosition_mean 259 timeReadByte_mean 414 timeReadLong_mean 460 timeSetDataPosition_mean 232 timeGetDataSize_mean 238 timeReadInt_mean 446 Bug: 62135986 Test: bit CtsOsTestCases:android.os.cts.ParcelTest Change-Id: I8c7ede25c87017ef2c7a49beaa3ac781c08ea365
Loading
Please register or sign in to comment