socket: improve speed of argument parsing