rsmarisa 0.3.0 で高速化された
https://github.com/tokuhirom/rsmarisa/pull/11
akaza-data の evaluate コマンドの実行がめっちゃ遅いので、perf コマンドでパフォーマンスを計測し、結果を claude に解析させたところ、rsmarisa が遅かった。まぁ、移植したあと特に計測してないので遅いのは想定の範囲内ではある。
しかしまぁ、AI でこういうのの解析すぐできるの便利すぎる。
- Remove .to_vec() heap allocations from find_child, predictive_find_child, match_, and prefix_match_ in LoudsTrie
- Query bytes are now read directly via agent.query().as_bytes()[pos] instead of copying the entire byte slice to a new Vec on every call
- The query is immutable during search, so borrowing is safe and sufficient
結局、めっちゃコピーしてるという感じで遅かった。
Published: 2026-02-07(Sat) 00:48