Number of Files in PHP Library

This is a discussion on Number of Files in PHP Library within the PHP Language forums, part of the PHP Programming Forums category; Hi, PHP allows the "library" which can contain an arbitrary number of include files. Can I put all ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-21-2004
David T. Ashley
 
Posts: n/a
Default Number of Files in PHP Library

Hi,

PHP allows the "library" which can contain an arbitrary number of include
files.

Can I put all the include files right in this directory, or should I create
subdirectories?

My question comes about because I understand that *nix systems begin to run
into performance difficulties at around 200 files in a directory (linear
search times for a directory).

Has anyone had experience with a large number of include files in a single
directory? How many? Did it seem to affect performance?

Thanks, Dave Ashley.



Reply With Quote
  #2 (permalink)  
Old 10-21-2004
Daniel Tryba
 
Posts: n/a
Default Re: Number of Files in PHP Library

David T. Ashley <dashley@cequentgroup.com> wrote:
> My question comes about because I understand that *nix systems begin to run
> into performance difficulties at around 200 files in a directory (linear
> search times for a directory).


This statement is both false as correct. There are *nix filesystems
which do re linear, there are also fs which use btrees: O(log n)
worstcase. So what system are you php running on?

--

Daniel Tryba

Reply With Quote
  #3 (permalink)  
Old 10-22-2004
David T. Ashley
 
Posts: n/a
Default Re: Number of Files in PHP Library

> This statement is both false as correct. There are *nix filesystems
> which do re linear, there are also fs which use btrees: O(log n)
> worstcase. So what system are you php running on?


Linux 7.3, ext3.



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0