diff options
| author | 2022-02-10 18:03:34 +0530 | |
|---|---|---|
| committer | 2022-02-15 11:32:16 +0000 | |
| commit | b414a4cc18a9e46b2674dcc81bbe1742e9fe5022 (patch) | |
| tree | a50b959c266430813f81783aadf14109743a8291 /libnativebridge/tests/PreInitializeNativeBridgeFail2_test.cpp | |
| parent | 4f5b7cb3dfef3ea175439a8a541f8c9f9458d34a (diff) | |
Intrinsify System.ArrayCopy for Primitive data types
This patch implements System.ArrayCopy intrinsic for
byte and int data types
14% improvement in microbench below:
public static void time_System_arrayCopy_byte(int reps) {
byte[] src = new byte[8192];
for (int rep = 0; rep < reps; ++rep) {
byte[] dst = new byte[8192];
System.arraycopy(src, 0, dst, 0, 8192);
}
}
public static void time_System_arrayCopy_byte(int reps) {
int[] src = new int[8192];
for (int rep = 0; rep < reps; ++rep) {
int[] dst = new int[8192];
System.arraycopy(src, 0, dst, 0, 8192);
}
}
Time for base version: 4057 ms
Time for intrinsic version: 3487 ms
Test: ./art/test/testrunner/testrunner.py --host --optimizing
Signed-off-by: Shalini Salomi Bodapati <shalini.salomi.bodapati@intel.com>
Change-Id: I87aced30330d031efea04554c6fa0c05f84e3bb9
Diffstat (limited to 'libnativebridge/tests/PreInitializeNativeBridgeFail2_test.cpp')
0 files changed, 0 insertions, 0 deletions