Closed qryxip closed 3 months ago
現在0.15ではinitialize時に、load_all_modelsのオンオフに関わらず.binファイルを全部メモリに読み込んでしまっています。これを"load"時 (Session作成時)まで遅延させます。
initialize
load_all_models
Session
https://x.com/maruna_lunar/status/1772239266321674530
https://github.com/VOICEVOX/voicevox_core/tree/release-0.15に実装
struct VoiceModelを削除してPathBufに置き換え、Sessionの構成時に.binを読むように変える。
struct VoiceModel
PathBuf
https://github.com/VOICEVOX/voicevox_core/blob/0fd77a2915884fbaf1afdbe6dfc7986dfe75d291/crates/voicevox_core/src/status.rs#L213-L216
製品版作成、リリース
エンジンかエディタのリリースノートに含める
0.?.0
製品版の使用メモリが1GB削減されました!!! ありがとうございます!!!
before
after
内容
現在0.15では
initialize
時に、load_all_models
のオンオフに関わらず.binファイルを全部メモリに読み込んでしまっています。これを"load"時 (Session
作成時)まで遅延させます。https://x.com/maruna_lunar/status/1772239266321674530
Pros 良くなる点
Cons 悪くなる点
実現方法
https://github.com/VOICEVOX/voicevox_core/tree/release-0.15に実装
struct VoiceModel
を削除してPathBuf
に置き換え、Session
の構成時に.binを読むように変える。https://github.com/VOICEVOX/voicevox_core/blob/0fd77a2915884fbaf1afdbe6dfc7986dfe75d291/crates/voicevox_core/src/status.rs#L213-L216
製品版作成、リリース
エンジンかエディタのリリースノートに含める
VOICEVOXのバージョン
0.?.0
OSの種類/ディストリ/バージョン
その他