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.