Improve processing speed#2832
Open
yzAiden wants to merge 4 commits intoModelEngine-Group:developfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
一、功能:
针对知识库页面上传的文件,进行了文件清洗速度的提升。
二、主要提升方式:
1.在原先的process-worker基础上增加了process-part-work,并在worker准备好之后预热3个actor并放入actor pool中
2.针对大小超过5M(阈值不一定最佳)的文件进行拆分,拆分后多个小文件共用actor pool进行多线程处理,完成之后合并chunks
3.在forward-worker中,对chunks进行64一组的拆分,多线程处理(但是生成向量时仍是10个chunks一组)