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 #179147 is a reply to message #179140] Sat, 15 September 2012 06:08 Go to previous messageGo to previous message
Anders Wegge Keller is currently offline  Anders Wegge Keller
Messages: 30
Registered: May 2012
Karma:
Member
"J. Frank Parnell" <juglesh(at)gmail(dot)com> writes:

> So, my question is, am I saving a significant amount of ram/cpu/time
> by keeping this cache of filenames or should I just glob the dir and
> include what's in there everytime?

You may want to consider autoloading classes as needed. See
http://php.net/manual/en/language.oop5.autoload.php

This approach is of course dependent on using PHP5 *and* having an
OO design.

--
/Wegge

Leder efter redundant peering af dk.*,linux.debian.*
[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 12:14:36 GMT 2024

Total time taken to generate the page: 0.03870 seconds