Message186259
Since issue #12268 has been fixed, it looks like it became easier to modify the io to use the writev() function when available.
For example, if FileIO.writelines() uses writev(), it can be used by TextIOWrapper.write() through BufferedWriter. The _io.TextIOWrapper.write() method stores encoded chunks of text into a list. It can calls buffer.writlines(pending) instead of buffer.write(b''.join(pending)).
I expect less Python function calls and less system calls, and so better performances because both are expensive (especially I/O syscalls).
See also issue #15723.
I don't know if/how readv() can be used to optimize I/O performances. |
|
Date |
User |
Action |
Args |
2013-04-08 01:00:15 | vstinner | set | recipients:
+ vstinner, gregory.p.smith, pitrou |
2013-04-08 01:00:15 | vstinner | set | messageid: <1365382815.42.0.538101348018.issue17655@psf.upfronthosting.co.za> |
2013-04-08 01:00:15 | vstinner | link | issue17655 messages |
2013-04-08 01:00:14 | vstinner | create | |
|