https://pythonspeed.com/articles/bytesio-reduce-memory-usage/?utm_source=www.pythonweekly.com&utm_medium=newsletter&utm_campaign=python-weekly-issue-686-february-6-2025
#BytesIO #memoryview #memory
#BytesIO #memoryview #memory
Python⇒Speed
The surprising way to save memory with BytesIO
If you want to save memory when reading from a BytesIO, getvalue() is surprisingly a good choice.