雨谷の日和

過去19年で2,600を超えるアニメの第1話だけは見続けた僕のお勧めアニメがハズレなはずがない

行列式計算改良(先頭アドレスのみコピー)インデックス版Java(事前、最適化無)

昨日のものを実行したときのprofileを見てみよう。
まずは最適化無しの場合だ。

result: 489261678

Flat profile of 42.99 secs (2752 total ticks): main

  Interpreted + native   Method
 99.2%  2729  +     0    Test.expand
  0.0%     1  +     0    java.lang.ClassLoader.findNative
 99.2%  2730  +     0    Total interpreted

  Thread-local ticks:
  0.0%     1             Class loader
  0.8%    21             Interpreter


Global summary of 42.99 seconds:
100.0%  2752             Received ticks
  0.0%     1             Class loader
  0.8%    21             Interpreter

約43秒という結果となった。かなり改善されている。