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

Feature: 优化 pydantic validation 流程 #2841

Closed
2598142880 opened this issue Jul 24, 2024 · 0 comments · Fixed by #2870
Closed

Feature: 优化 pydantic validation 流程 #2841

2598142880 opened this issue Jul 24, 2024 · 0 comments · Fixed by #2870
Labels
enhancement New feature or request

Comments

@2598142880
Copy link

2598142880 commented Jul 24, 2024

操作系统

Linux

Python 版本

3.12.0

NoneBot 版本

2.3.2

适配器

Onebot v11

协议端

gensokyo

描述问题

响应器异常超高占用,cpu占用与响应器数量,消息量成正相关(二次函数级别)
check_field_type函数占用异常高
6个响应器,每秒20条
将全部check_field_type注释掉后,cpu占用从50%降到8%

复现步骤

创建很多响应器,同时收消息,消息越多cpu占用越多,最终假死

期望的结果

希望cpu占用异常修复

截图或日志

No response

@2598142880 2598142880 added the bug Something isn't working label Jul 24, 2024
@yanyongyu yanyongyu added enhancement New feature or request and removed bug Something isn't working labels Jul 24, 2024
@yanyongyu yanyongyu changed the title Bug: 出现异常 Feature: 优化 pydantic validation 流程 Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants