Re: how to make for statement run faster
| From: | Virgilio Quilario | Date: | Fri, 20 Mar 2009 16:12:38 +0000 |
| Subject: | Re: how to make for statement run faster | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290382@lists.php.net to get a copy of this message | ||
> I have a program where I process more that 5000 list of 100 data at time
> but it very slow due to many *for statement*s. how you make it run faster
code for statements to use a variable or contant for testing in every
iteration like below
for ($i = 0; $i < 100; $i++) {}
also try to optimize the operations inside the for loop.
or maybe better to post snippets.
Virgil
http://www.jampmark.com