Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win中多线程cut大量的块,结巴中的resize或者reverse会异常崩溃 #167

Open
wuyang-dl opened this issue Jul 20, 2022 · 0 comments

Comments

@wuyang-dl
Copy link

wuyang-dl commented Jul 20, 2022

你好,请教一下。
多线程cut大量的文件,每个文件都很大(10MB左右),我是以4MB为一个块送到jieba中cut。
整个程序占用内存也不大(800MB左右)

但是多线程cut的话,会经常在jieba的vector中resize或者reverse崩溃。

请问这个是代码没有考虑到这个情况么?还是需要我事先把块切割的非常小(如1KB一个块),送给jieba cut?

谢谢!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant