myfreeforum.org Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
For an excellent guide to using your myfreeforum forum, you can visit
howtodoit
The howtodoit "readonly" forum provides answers and walkthroughs for all common questions.
  • Welcome
  • Country: US
    US
    Address: 38.107.191.105
  • Server Appeal

Solution looking for problem

 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Forum Blogs
Site Admin
Site Admin
Joined: 22 May 2005
Posts: 25229



View user's profile Send private message

A Blog by - admin (no pm's please)




Virtual Cash: 21280
Just got a badly dated copy of O'Reilly Apache Modules with Perl/C, which is all the gubbins on how to get web code running a lot lower down the server food chain that the forums do.

Many server tasks are run at a pretty criminally inefficient level, forums are not too bad as with cached php pcode, the overhead of the php interpreter is not much compared to the database accesses.

But you get examples that are really appalling, for instance the flags you see on this forum are done from an "ip to country" database and I have seen example php code that loads this database each time a request is made   and in all fairness in straight php there is little choice but to do that We avoid this issue by running a little server written in 'c' that has the database efficiently preloaded and a simple sockets call from php is all it takes to grab a Country code. For this issue we are probably doing things the best way.

However in another thing we do, the gallery system, the accesses to files in the gallery go through to some quite simple php code, but the mere fact it is php code is inefficient. If we could embed a module directly into the server we could drastically reduce the load involved in gallery calls. Not too important on our system where the gallery is only a small % of the load, but very important if we were simply running a gallery system, and anyhow every little helps.



_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Author Message
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Forum Blogs All times are GMT
Page 1 of 1
 
 
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

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum