ループ
id:kzkさんに loop unrolling (内容は知っていたけどこの言葉を知らなかった)試してみてはアドバイスをいただいたのでやってみた。
が、あまり変わらなかった。
それ以前に最近 gprof してないのがダメな気がする。
gprof とってみた。これはヒドイ><。
Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 13.21 0.07 0.07 1712489 0.00 0.00 gc_mark_heap(GCRecord*) 9.43 0.12 0.05 22 2.27 5.91 gc_mark() 9.43 0.17 0.05 22 2.27 2.73 gc_sweep()