Add newStringFromUtf8Bytes native implementation.
Porting a part of StringFactory.newStringFromBytes from libcore to
native
for UTF-8 character set. It can improve the UX score of Antutu v8 a
little
bit.
Only watch UX score. We test 10 times and average the total score.
Bechmark results
- before(Java implementation):
10 times avg,: 13133.9
- after (Native implementation):
10 times avg.: 13324.2
Diff.: +1.4%
Bug: 176514597
Test: ./test.py --host
Change-Id: I6b601c09663b21fdacde7f14b0db1ac4f0a94c0f
1 file changed