commit | c4aa82c5b0aa921c51eaf6f6bbaff36501ea2cee | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Mon Mar 06 14:38:52 2017 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Tue Mar 07 14:32:54 2017 +0000 |
tree | 0da77f4e4a0fca7577f4c4c709353465d46c8581 | |
parent | 3a791cee90451dc32d46f1b0a85fecc6f22f62bf [diff] |
Invoke typed arraycopy for primitive arrays. Apps will always call the Object version of arraycopy. When we can infer the types of the passed arrays, replace the method being called to be the typed System.arraycopy one. 10% improvement on ExoPlayerBench. Test: 641-checker-arraycopy bug: 7103825 Change-Id: I872d7a6e163a4614510ef04ae582eb90ec48b5fa