Re: Optimizing Help
| From: | jack jackson | Date: | Mon, 13 Jun 2005 15:17:30 +0000 |
| Subject: | Re: Optimizing Help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216888@lists.php.net to get a copy of this message | ||
Thanks, Chris, I see what you're getting at. I'm not sure I
understand what you mean about looping through the array in the area
you specified- isn't that just the definitions of the vars? Or is that
what you meant and I'm missing the point!!?
On 6/13/05, Chris Ramsay <raz.net@gmail.com> wrote:
> Hey there Jackson,
>
> The first thing I would consider would be to see if you can classify
> the code into chunks that do a certain job, and then rewrite them as
> functions. I would also consider looping through arrays for repetitive
> jobs (lines 258 -> 270 for example).
>
> Down the line you could consider the use of classes, your own or ready
> made - such as the ever useful PEAR (http://pear.php.net). I
> personally found that the greatest saver of time to be the re-use of
> code that I know works well for given situations.
>
> HTH
>
> Chris
>