Re: Code Improvement
| From: | Miguel Cruz | Date: | Fri, 14 Jun 2002 00:10:46 +0000 |
| Subject: | Re: Code Improvement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102110@lists.php.net to get a copy of this message | ||
On Thu, 13 Jun 2002, Pong-TC wrote:
> I run the simple code to display data from the database. There are around
> 5000 records and 50 fields. It takes around 1 1/2 min to retrieve the
> data to the browser. I'd like to know if we can improve my code. So, I
> can retrieve the data in a shorter period of time. I have codes as
> follows:
You're sending 250,000 table cells. That's going to take a while to
render, no matter what.
Are you sure that the time is taken in generating the data rather than in
actually rendering the display? How long does it take when you use lynx
and dump it to /dev/null?
% time lynx -dump http://yahoo.com > /dev/null
lynx -dump http://yahoo.com > /dev/null 0.03s user 0.01s system
11% cpu 0.352 total
miguel