うまくまとまらないけど、つらつら書いてみようと思う。 vaskir's blog: Hash maps: Rust, F#, D, Go, Scala 読んでてScalaの数値があんまり良くない原因がコメント欄で書かれてた Scala/JVM's boxing and unboxing is very slow in such a tight loop. Eclipse collections may be useful. https://gist.github.com/zakki/66d785b4a9d3c64bc9f8199d7e290e07 13x fasterただ、元コードがRustでの std::collections::{HashMap}へのキー追加 Vecで頭から参照しながら足してく なので、int[]で計算してたのが気になったのでeclipseコレクションつかって計算してみ