468,139 Members | 1,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,139 developers. It's quick & easy.

my script pauses - no calls to database or file system - but a long pause


There is a point in rendering a page of mine where my script pauses for
a long time. It is a painful wait - maybe 5 seconds. It is long enough
that when I try to show the software to people they get bored at that
point and begin to look away.

I'd like to remove whatever road block slows things down at that point
in my script, but I am unable to diagnose the problem. I am using a
command that is used elsewhere on the page, before and after, without
delays. There are no calls to the database or the file system.

What could the problem be and how do I fix it?

Mar 11 '06 #1
4 1063
"lawrence k" <lk******@geocities.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...

There is a point in rendering a page of mine where my script pauses for
a long time. It is a painful wait - maybe 5 seconds. It is long enough
that when I try to show the software to people they get bored at that
point and begin to look away.

I'd like to remove whatever road block slows things down at that point
in my script, but I am unable to diagnose the problem. I am using a
command that is used elsewhere on the page, before and after, without
delays. There are no calls to the database or the file system.

What could the problem be and how do I fix it?


Surely we'd need to see a copy of your code?

Cheers,
R.
Mar 11 '06 #2
>There is a point in rendering a page of mine where my script pauses for
a long time. It is a painful wait - maybe 5 seconds. It is long enough
that when I try to show the software to people they get bored at that
point and begin to look away.

I'd like to remove whatever road block slows things down at that point
in my script, but I am unable to diagnose the problem.
I am using a
command
Name that command. Does it have anything to do with networking where
reverse DNS lookups (by either the command or a server it contacts)
might be an issue?
that is used elsewhere on the page, before and after, without
delays. There are no calls to the database or the file system.

What could the problem be and how do I fix it?


You didn't tell us what the command was.

Gordon L. Burditt
Mar 11 '06 #3
This is where an IDE such as Zend Studio or PhpEd really helps. If
you're serious about PHP programming, I'd suggest looking into one of
them. They can help pinpoint bottlenecks in code. I've used them both,
and had better luck with Zend Studio. PhpEd was rather buggy, but that
was a couple of versions ago.

If your script doesn't require local resources, as you suggest, I'd be
happy to run it through the Zend debugger for you if you want to send me
the code (scott at webscott * com).

Scott

lawrence k wrote:
There is a point in rendering a page of mine where my script pauses for
a long time. It is a painful wait - maybe 5 seconds. It is long enough
that when I try to show the software to people they get bored at that
point and begin to look away.

I'd like to remove whatever road block slows things down at that point
in my script, but I am unable to diagnose the problem. I am using a
command that is used elsewhere on the page, before and after, without
delays. There are no calls to the database or the file system.

What could the problem be and how do I fix it?

Mar 11 '06 #4
I use PhpED's profiler to find the bottlenecks and PhpED debigger to
debug the code. I don't know about couple of versions back, but version
4.0 is VERY stable, I was impressed. Try it - it is done by NuSphere
www.nusphere.com, definetely works for me.
(I just checked their website, they released new version and there are
some demos of the debugger on the product page, I haven't checked it
out yet)
Scott wrote:
This is where an IDE such as Zend Studio or PhpEd really helps. If
you're serious about PHP programming, I'd suggest looking into one of
them. They can help pinpoint bottlenecks in code. I've used them both,
and had better luck with Zend Studio. PhpEd was rather buggy, but that
was a couple of versions ago.

If your script doesn't require local resources, as you suggest, I'd be
happy to run it through the Zend debugger for you if you want to send me
the code (scott at webscott * com).

Scott

lawrence k wrote:
There is a point in rendering a page of mine where my script pauses for
a long time. It is a painful wait - maybe 5 seconds. It is long enough
that when I try to show the software to people they get bored at that
point and begin to look away.

I'd like to remove whatever road block slows things down at that point
in my script, but I am unable to diagnose the problem. I am using a
command that is used elsewhere on the page, before and after, without
delays. There are no calls to the database or the file system.

What could the problem be and how do I fix it?


Mar 14 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.