Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(parsing.utils): ensure_plain: use run_async only if processing HTML
Utilizing aio_helper.run_async() actually means that the function call will be queued until the ThreadPoolExecutor is free to pick it up. The queue can be extremely long under high loads. Preventing ensure_plain from utilizing aio_helper.run_async() when unneeded, so that the pressure of ThreadPoolExecutor won't be too high. Signed-off-by: Rongrong <[email protected]>
- Loading branch information