Message306121
Flushing the buffer at each frame commit will cause a medium-sized write every 64kB on average (instead of one big write at the end). So that might actually cause a performance regression for some users if the individual file-object writes induce significant overhead.
In practice though, latency inducing file objects like filesystem-backed ones are likely to derive from the [BufferedWriter](https://docs.python.org/3/library/io.html#io.BufferedWriter) base class and the only latency we should really care about it the one induced by the write call overhead itself in which case the 64kB frame / buffer size should be enough. |
|
Date |
User |
Action |
Args |
2017-11-12 16:45:49 | Olivier.Grisel | set | recipients:
+ Olivier.Grisel, pitrou, serhiy.storchaka |
2017-11-12 16:45:49 | Olivier.Grisel | set | messageid: <1510505149.06.0.213398074469.issue31993@psf.upfronthosting.co.za> |
2017-11-12 16:45:49 | Olivier.Grisel | link | issue31993 messages |
2017-11-12 16:45:48 | Olivier.Grisel | create | |
|