Skip to content

High CPU usage if request content is bytes #2554

@kice

Description

@kice

I noticed a increase of CPU usage after I changed request content from content=io.BytesIO(b'<actual data>') to content=b'<actual data>'. The content I want to send is 10MB in size, which is not that much, but still considerable amount of data.

My code is running on a VPS with low end CPU, which makes it much more dramatic (from peek at 40% to pinned at 100%).

I would like to help debug this issue, but I need some instructions to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions