diff options
author | Rex Kerr <ichoran@gmail.com> | 2013-11-11 03:45:48 -0800 |
---|---|---|
committer | Rex Kerr <ichoran@gmail.com> | 2013-11-18 01:41:50 -0800 |
commit | 992b90ebcc8cd3415c288a7258015ec35ed9098e (patch) | |
tree | ebb02a319ee664b28c981c99bad840ddc5f834d6 /test/files/run/t2127.scala | |
parent | 05aedd936e7e7bcf0fa2443abd58b39732f173a9 (diff) | |
download | scala-992b90ebcc8cd3415c288a7258015ec35ed9098e.tar.gz scala-992b90ebcc8cd3415c288a7258015ec35ed9098e.tar.bz2 scala-992b90ebcc8cd3415c288a7258015ec35ed9098e.zip |
New AnyRefMap fixes SI-5263 to the extent practical.
An open addressing hash map based on a similar scheme to mutable.LongMap.
It delivers performance equivalent to Java's HashMap for pretty much all
AnyRefs, plus it works nicely with Scala's collections.
Revisions made sure that all return types in the public API are specified.
Also switched to a leading-zeros method of calculating the initial mask (to
save a few ns). Also edited out java.util comparison numbers and moved
constants to companion.
Diffstat (limited to 'test/files/run/t2127.scala')
0 files changed, 0 insertions, 0 deletions