Use multiple sockets?
In reply to Re: How can I optimize my script? by Anonymous Monk in thread How can I optimize my script? by danielbenny