[Python-Dev] [Python-checkins] cpython: Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX (original) (raw)
Victor Stinner victor.stinner at gmail.com
Wed Oct 23 13:53:40 CEST 2013
- Previous message: [Python-Dev] [Python-checkins] cpython: Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX
- Next message: [Python-Dev] [Python-checkins] cpython: Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"For the record, pipe I/O seems a little faster than socket I/O under Linux"
In and old (2006) email on LKML (Linux kernel), I read: "as far as I know pipe() is now much faster than socketpair(), because pipe() uses the zero-copy mechanism." https://lkml.org/lkml/2006/9/24/121
On Linux, splice() can also be used with pipes for zero-copy operations. I don't know if splice() works with socketpair(). Well, I don't think that Python uses splice() now, but it may be interesting to use it. Or sendfile() uses it maybe internally?
Victor
- Previous message: [Python-Dev] [Python-checkins] cpython: Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX
- Next message: [Python-Dev] [Python-checkins] cpython: Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]