RE: [PHP] slowness mystery (part 2)

2008-06-10 Thread Jay Blanchard
[snip] But now i have sort of the same problem in loading a bit of HTML text. It takes 1100ms to load 2Kb of HTML. I think it should be more like 100-300ms. [/snip] Server config? Apache config? Bandwidth? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] slowness mystery (part 2)

2008-06-10 Thread Rene Veerman
In my previous post, I listed 50Kb of obfusicated gzipped javascript loading in 3.5 seconds. It turns out that it was the decompression of the obfusication that was causing the delay. Twiddling with parameters for phpjso (the obfusicator) brought that down to just 320ms. But now i have sort of th

Re: [PHP] slowness mystery

2008-06-04 Thread Rene Veerman
it's equally slow when viewed from a local machine running firefox+apache+php+mysql, or from the internet hoster i use.. On Wed, Jun 4, 2008 at 5:48 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 8:49 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > >> Using a statis .js file c

Re: [PHP] slowness mystery

2008-06-04 Thread Nathan Nobbe
On Wed, Jun 4, 2008 at 8:49 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > Using a statis .js file costs 3.54 seconds. > > Should i suspect apache now? is this something youre fetching over a local network, or are you going out over the internet to get it ? -nathan

Re: [PHP] slowness mystery

2008-06-04 Thread Eric Butera
On Wed, Jun 4, 2008 at 10:01 AM, Bastien Koert <[EMAIL PROTECTED]> wrote: >> >> >> >> Make it write out a static .js file and link to that. Apache can >> serve up files like that way faster directly than piping it through >> php. If you don't want to go through that hassle, make sure you have >>

Re: [PHP] slowness mystery

2008-06-04 Thread Eric Butera
On Wed, Jun 4, 2008 at 8:45 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > Ok, i changed from reading from the database to reading from a file. > It now clocks at 3.37seconds for the malignant peace of javascript.. > Still too slow :( > > Timing the readfile statement that outputs the cache file, is

Re: [PHP] slowness mystery

2008-06-04 Thread Thijs Lensselink
Quoting Rene Veerman <[EMAIL PROTECTED]>: Using a statis .js file costs 3.54 seconds. Should i suspect apache now? You could try running the php script from the command line. And see how long it takes. Just to make sure if it's apache or PHP. Profiling the script will also help tracking dow

Re: [PHP] slowness mystery

2008-06-04 Thread Rene Veerman
Using a statis .js file costs 3.54 seconds. Should i suspect apache now?

Re: [PHP] slowness mystery

2008-06-04 Thread Bastien Koert
> > > > > Make it write out a static .js file and link to that. Apache can > serve up files like that way faster directly than piping it through > php. If you don't want to go through that hassle, make sure you have > a far future expire header on the file so that the client does not > request it

Re: [PHP] slowness mystery

2008-06-04 Thread Eric Butera
On Wed, Jun 4, 2008 at 8:45 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > Ok, i changed from reading from the database to reading from a file. > It now clocks at 3.37seconds for the malignant peace of javascript.. > Still too slow :( > > Timing the readfile statement that outputs the cache file, is

Re: [PHP] slowness mystery

2008-06-04 Thread Rene Veerman
Ok, i changed from reading from the database to reading from a file. It now clocks at 3.37seconds for the malignant peace of javascript.. Still too slow :( Timing the readfile statement that outputs the cache file, is at 0.00109 seconds according to a measurement done with microtime() It seems tha

Re: [PHP] slowness mystery

2008-06-04 Thread Nathan Nobbe
On Wed, Jun 4, 2008 at 3:05 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > Hi.. > > I've built a cms that's running into a serious speedbump. > I load several sets of javascript through a custom built db > caching&compression system. > Loading it without caching and compression takes between 2 and

[PHP] slowness mystery

2008-06-04 Thread Rene Veerman
Hi.. I've built a cms that's running into a serious speedbump. I load several sets of javascript through a custom built db caching&compression system. Loading it without caching and compression takes between 2 and 3 seconds for the entire app, 112Kb javascript. The caching system first compresses