Python Socket Overhead Optimization Formula