B+TreeにIListの皮をかぶせてテキストエディターでよく使うバッファー周りを書いてみた。
https://github.com/rirufa/FooList
core i5 10400Fでのベンチマーク結果だが、
benchmark startadd time:388 msreplace1 time:15976 msreplace2 time:16992 msadd:"this is a pen.this is a pen.this is a pen.this is a pen.this is a pen.this is a pen."を10万行追加replace1:penをcatに置き換えreplace2:catをratkingに置き換え
benchmark start
add time:388 ms
replace1 time:15976 ms
replace2 time:16992 ms
add:"this is a pen.this is a pen.this is a pen.this is a pen.this is a pen.this is a pen."を10万行追加
replace1:penをcatに置き換え
replace2:catをratkingに置き換え
ぐらいで、秀丸にも歯が立たない
B+TreeListではこんなものか
Permalink | 記事への反応(0) | 15:46
ツイートシェア