JuliaLang/julia — comment on commit 7bb95bca20412c35007324b87b891ebc23551d9e
File:  line 0
By StefanKarpinski:

I get no speedup from that :-(

Here's my patch:

```diff
@@ -350,7 +350,8 @@ function spawn(cmd::Cmd)
pid = fork()
if pid == 0
for (f,p) = c.pipes
- dup2(fd(p), f)
+ # dup2 manually inlined for performance
+ ccall(:dup2, Int32, (Int32, Int32), fd(p).fd, f.fd)
end
for f = close_fds```