summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/ArrayBuffer.scala
diff options
context:
space:
mode:
authorRex Kerr <ichoran@gmail.com>2016-11-09 00:30:31 -0800
committerRex Kerr <ichoran@gmail.com>2016-11-09 18:00:07 -0800
commite5fd42d60a8eee70e2e4fa1c141557924115763d (patch)
treee644b05513ece978beea7a570db587754cc251bd /src/library/scala/collection/mutable/ArrayBuffer.scala
parent10c609e750a7089055b126e6231e5ddb2f2e8623 (diff)
downloadscala-e5fd42d60a8eee70e2e4fa1c141557924115763d.tar.gz
scala-e5fd42d60a8eee70e2e4fa1c141557924115763d.tar.bz2
scala-e5fd42d60a8eee70e2e4fa1c141557924115763d.zip
Improved runtime speed for Vector, restoring previous performance.
All calls to Platform.arraycopy were rewritten as java.lang.System.arraycopy to reduce the work that the JIT compiler has to do to produce optimized bytecode that avoids zeroing just-allocated arrays that are about to be copied over. (Tested with -XX:-ReduceBulkZeroing as suggested by retronym.)
Diffstat (limited to 'src/library/scala/collection/mutable/ArrayBuffer.scala')
0 files changed, 0 insertions, 0 deletions