apinge / MeloTTS.cpp

A lightweight pure C++ Text-to-Speech (TTS) pipeline with OpenVINO, supporting mixed English and Chinese languages.
Apache License 2.0
16 stars 4 forks source link

Investigate whether it is necessary to disable multithreading in cppinyin #11

Open apinge opened 1 week ago

apinge commented 1 week ago

The current code looks up pinyin word by word. We need to investigate whether multithreading brings any performance benefits, considering the additional overhead from context switching. Right now, enabling multithreading introduces extra compiler options /MT with msvc, that may propagate throughout the entire project.

If we wrap multithreading around the inference, and each inference also includes multithreading for pinyin processing, would the overhead of having multithreading within multithreading be too large?