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 #179165 is a reply to message #179163] Sun, 16 September 2012 23:00 Go to previous messageGo to previous message
J. Frank Parnell is currently offline  J. Frank Parnell
Messages: 12
Registered: January 2012
Karma:
Junior Member
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?
[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: Wed Nov 27 08:59:25 GMT 2024

Total time taken to generate the page: 0.04699 seconds