Celluloid creates an Actor which then performs a connection. Even if you put this inside a Celluloid.defer (as I did in dblock/slack-market@3635cdd) it doesn't seem to happen in parallel, build_socket is blocking. This causes server start with lots of connections to be very slow, as we create TCP connections one-at-a-time.
Celluloid creates an
Actorwhich then performs a connection. Even if you put this inside aCelluloid.defer(as I did in dblock/slack-market@3635cdd) it doesn't seem to happen in parallel,build_socketis blocking. This causes server start with lots of connections to be very slow, as we create TCP connections one-at-a-time.