Commit 0d8507a
Improve Array.copy performance
If source and dest are both non-primitive array types, then we can
always use System.arraycopy and avoid the slowcopy
branch. ArrayBuffer.toArray is added to the benchmark suite in order
to avoid regressions and demonstrate the performance impact.1 parent 42eb1b2 commit 0d8507a
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
0 commit comments