473,473 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.

Jul 17 '05 #1
3 1693
In article <lm*******************@fe41.usenetserver.com>,
"David T. Ashley" <da*****@cequentgroup.com> wrote:
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.


200 is way to small. More like in the thousands, at least on Solaris.
YMMV depending on the Unix variant. Besides, when you use readdir(),
you're scanning the directory linearly anyway, one line at a time.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #2
David T. Ashley <da*****@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

Jul 17 '05 #3
> 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.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: 73blazer | last post by:
Hello, I'm writing some C++ code, and I need to be able to find the number of files in a given directory. Is it possible under AIX4.3.3 with C++ 3.6.4? I cannot seem to locate anything of this...
18
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now...
4
by: Jack | last post by:
I have two files: sort_comparison.c++ my_sort.h sort_comparison.c++ calls this code in my_sort.h: void my_sort::fillArray(int arr,int n) { // const int random_number_range=1000000;
3
by: pooja | last post by:
Suppose i have created a class c1 with f1()in c1.cpp and included this c1.cpp in file1.cpp file , which is also having main() by giving the statement #include "c1.cpp". the same i can do by...
36
by: Wei Su | last post by:
Hi, I have a text file abc.txt and it looks like: 12 34 56 23 45 56 33 56 78 ... .. .. ... .. .. I want to get how many rows totally in the text file, how to do this? Thanks.
1
by: Kevin Liu | last post by:
Attribute Programming generates IDL file automatically. The IDL looks like import "C:\Program Files\Microsoft Visual Studio ..NET\Vc7\PlatformSDK\include\prsht.idl"; import "C:\Program...
29
by: james | last post by:
I have a problem that at first glance seems not that hard to figure out. But, so far, the answer has escaped me. I have an old database file that has the date(s) stored in it as number of days. An...
7
by: TheGanjaMan | last post by:
Hi people, I'm stuck on a problem and I was wondering if there was a way around: I'm trying to find the number of lines in a comma delimited text file. I have a progress bar that should...
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
I need a Big Number library. I've been considering switching my project to C++ but at the moment I'm exploring the avenue of keeping it in C. What's the best Big Number library for C? I need to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.