High CPU usage caused by JSON encoding in API queue
Open
Potential Bug
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
### Expected Behavior
API request return in short or Does not blocking the main ComfyUI execution.
### Actual Behavior
submit a big workflow with batch size 1500 will cause the API queue take 30% CPU time of whole process
### Steps to Reproduce
1, a big workflow
2, submit 1500 task to comfyui
### Debug Logs
```powershell
there is no log
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.