Replies: 1 comment
-
Buffer bloat is a very real issue; excessive buffer bloat may cause huge delays and unexpected jitter (but hey adding more memory cannot be a bad thing? 😬 ) Therefore, if in doubt, it's a good idea to stick to the Sadly, pure Python algorithms (particularly poorly written ones! 😛) may favour a larger buffer size around 64 KiB due to the interpreter overhead in manipulating small chunks of data (== more ops, more function calls). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This note from the Python docs seems to validate the rule of thumb I've used for a long time:
I wonder what the latest research says on the subject?
io.DEFAULT_BUFFER_SIZE
is currently defined as 8 KiB.Seems like with buffers getting larger and disks/networks getting faster, you might need to increase the app buffer size to avoid too much context switching. But the reality could very well be different. And you need to be careful not to introduce a lot of buffer bloat.
Beta Was this translation helpful? Give feedback.
All reactions