4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Many vs large text files?
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
tullmejs
Junior WebHelper
Junior WebHelper


Joined: 15 Jul 2003
Posts: 2

PostPosted: Tue Jul 15, 2003 3:12 am (14 years, 3 months ago) Reply with QuoteBack to Top

Hi,

I can either use several text files or one. With only one file it will be more complex and need more parsing code. (The content is various configuration data).

Generally, what solution is likely to be better performance-wise?

My guess is that either one file is better, or the difference is very small...

(I'll probably use several files, just curious for future - possibly bigger/more critical - projects.)

Thanks :-)
OfflineView User's ProfileFind all posts by tullmejsSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Jul 15, 2003 7:47 am (14 years, 3 months ago) Reply with QuoteBack to Top

If this is a PHP coding project, I can tell you that having all the code in one file is a pain to manage, and it seriously impacts performance, since PHP has to parse the whole file even though you probably only need part of it. Includes are the way to go, but don't use too many of them either Wink.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
tullmejs
Junior WebHelper
Junior WebHelper


Joined: 15 Jul 2003
Posts: 2

PostPosted: Tue Jul 15, 2003 5:30 pm (14 years, 3 months ago) Reply with QuoteBack to Top

Yeah, managing and certainly development/debugging will be a pain with all data in one file! None of that.

I use vbscript at a humble beginners level. Don't know about includes Neutral
OfflineView User's ProfileFind all posts by tullmejsSend Personal Message
pcbunk
Junior WebHelper
Junior WebHelper


Joined: 18 Jul 2003
Posts: 7

PostPosted: Fri Jul 18, 2003 8:32 am (14 years, 3 months ago) Reply with QuoteBack to Top

i use php, and the larger they get, the longer they take to load. When my file size got up to about 8mb, it took around 30 seconds for it to parse the file, i recommend lots of files

________________________________
Blayne
PCBunk.net
OfflineView User's ProfileFind all posts by pcbunkSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.046247 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme