Skip to content

Feature: 优化 pydantic validation 流程 #2841

@hdjsadgfwtg

Description

@hdjsadgfwtg

操作系统

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions