Re: Code execution speed
| From: | Curt Zirzow | Date: | Mon, 06 Nov 2006 23:02:50 +0000 |
| Subject: | Re: Code execution speed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244292@lists.php.net to get a copy of this message | ||
On 11/6/06, Eric <eaw2397@rit.edu> wrote:
I was looking for some ways to speed up the execution of my code. Im connecting to and displaying information from a newsgroup via sockets. The socket_recv's are slowing it down. What things other than the socket_recv's can I change to make the code faster. Just general tips. Thanks in advance.Cache what you recieve by the message id in a database or something, if it exists in the database use that, otherwise fetch it via the socket. I can't think of a more general way to speed things up. Curt.