This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gregory.p.smith, pitrou, vstinner
Date 2013-04-08.01:00:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365382815.42.0.538101348018.issue17655@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-04-08 01:00:15vstinnersetrecipients: + vstinner, gregory.p.smith, pitrou
2013-04-08 01:00:15vstinnersetmessageid: <1365382815.42.0.538101348018.issue17655@psf.upfronthosting.co.za>
2013-04-08 01:00:15vstinnerlinkissue17655 messages
2013-04-08 01:00:14vstinnercreate