Speeding up Node.js with a DNS cache
Everyone knows localhost -> 127.0.0.1, right? Well, it depends.
Looking at syscalls made by our node app, I noticed that a lot of calls were
made for dns resolution. The input, rather disappointingly, was localhost and of course the response being 127.0.0.1. P99 for these calls was almost