Skip to content

如果我直接在引擎内部集成一个restful api,引擎的一部分特性是不是会失效 #169

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

Open
lipancs opened this issue Mar 7, 2025 · 1 comment

Comments

@lipancs
Copy link

lipancs commented Mar 7, 2025

首先非常感谢作者的辛苦付出,这个项目的确要比python版本的快上很多。
但是发现查看外部的api例子,很多时间浪费在外部API的处理上。
我查看了一下代码,初步选了一个crow的组件作为实现。复制了一下task的run_ocr作为直接调用。但是发现引擎本身还有一些内存清理的额外的任务,我这样搞得话,是不是这些功能都失效了。

@lipancs
Copy link
Author

lipancs commented Mar 7, 2025

已经集成成功了,Task::memory_check_cleanup();写到复制的run_ocr()里面了,实测比用外部API调用节省了将近60%的时间。

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