We've been successful at increasing IPC performance via pipes (and aim to do better through some mutex optimizations). On the other hand, things in the LAMP stack do IPC via sockets. WSGI uses network sockets locally, and libpq/postgres use local unix domain sockets.
We should be able to model local socket connections in RustPOSIX as a set of two pipes, one in each direction. We should be able to keep track of if a socket is A) created via NaCl/RustPOSIX and B) uses localhost. If so, we should direct RustPOSIX to use these pipes instead of actual sockets.
We've been successful at increasing IPC performance via pipes (and aim to do better through some mutex optimizations). On the other hand, things in the LAMP stack do IPC via sockets. WSGI uses network sockets locally, and libpq/postgres use local unix domain sockets.
We should be able to model local socket connections in RustPOSIX as a set of two pipes, one in each direction. We should be able to keep track of if a socket is A) created via NaCl/RustPOSIX and B) uses localhost. If so, we should direct RustPOSIX to use these pipes instead of actual sockets.