Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 4th, 2004, 6:36 AM   #1
ooen
Newbie
 
Join Date: Jun 2004
Posts: 8
Rep Power: 0 ooen is on a distinguished road
I have some script to create a search directory; the script calls a routine to create a set of URL strings, but it appears that the routine is called on every request. This clearly has some problem, but I am not that good at php. Can anyone help me? This briefly describes how this code runs and you can even get the entire source code here.

Help me !!!
ooen is offline   Reply With Quote
Old Jul 22nd, 2004, 11:59 PM   #2
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Telling you how to optimize the code unfortunatly is not an easy thing to do...

first thing you need to find out is if your scripting system has the Zend Optimizer installed, if it does, then do not worry about it.. the optimizer will probably optimize enough automatically such that you do not need to worry.

Aside from that, professionals struggle for a great part of their career to figure out how to best optimize a system, there are many factors in which one takes into account to do this... and an incredible amount of statistics (even if you do not realize it).

It could take a while to optimize a small piece of code like that if I am not sure exactly what application it has... and even then, still a fair bit of work.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Jul 23rd, 2004, 12:54 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Quote:
.... a great part of their career to figure out how to best optimize a system
There are people that actually do optimizations for a living... and that's all they do. I believe its termed Software Metrics, at least here in the US.

As kurifu mentions, optimization is usually done internally... in an abstract fashion if you will. Perhaps you can let us know the sections that are causing you the most concern and we can address them from there?
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jul 23rd, 2004, 12:55 AM   #4
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Post them in this forum if you could, it is exasperating to play link tag trying to find what you are talking about
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:24 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC