FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How expensive is glob'ing a dir and including all the files?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How expensive is glob'ing a dir and including all the files? [message #179166 is a reply to message #179165] Mon, 17 September 2012 00:17 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/16/2012 7:00 PM, J. Frank Parnell wrote:
> On Sunday, September 16, 2012 2:45:40 PM UTC-7, Jerry Stuckle wrote:
>> On 9/16/2012 1:50 PM, J. Frank Parnell wrote:
>>
>>> Ok, so I tested
>>> and I got
>>> Script executed in 0.0200 seconds
>>> Thats with either globing or reading the cache file (which backs up the statement that the glob doesnt add much)
>>
>> That's a HUGE amount of server time!
>
>>> Afa size and traffic of sites, wordpress sites, plenty of plugins and custom stuff. Traffic, some might be 100-500 page views/day.
>>> Testing script execution for the whole page gave me around 2.5 seconds.
>> Even worse!
>>> The whole front page takes around 2 seconds
>> Not good at all.
>
> Another wp site, but without several facebook curls was .3 seconds (homepage), another .7, and a non wp site of mine, but still using my funcs includer was .03 seconds.
>
> What do you think a good average should be, for a db driven site?
>

Gawd, that's terrible!

Most of mine come in at under 0.001 seconds to server a page. A few run
a bit more, but not much.

I'm surprised shared hosting allows you to take that much CPU time.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php and PDO Error HTTP 500
Next Topic: PHP Update
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 05:53:44 GMT 2024

Total time taken to generate the page: 0.03758 seconds