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

You have to manually inline `dup2` at the call site, since otherwise it will still need to do native code generation or at the very least updating the method cache. This gave me a significant speedup.