yanyiwu / gojieba

"结巴"中文分词的Golang版本
MIT License
2.4k stars 302 forks source link

请问怎样减少CPU消耗? #35

Open btfak opened 6 years ago

btfak commented 6 years ago

我的使用场景中文较少,绝大部分是英文。只需要将常见的中文分词即可。 现在每秒2000~3000次分词,top 中看 cpu 消耗会超过100%,请问怎样能减少CPU消耗。

目前使用 CutForSearch (str, true) 这样的分词方式

github-actions[bot] commented 1 week ago

This issue has not been updated for over 5 years and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.