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 
  • Welcome
  • Guest

Solution looking for problem

Post new topic   Reply to topic    myfreeforum.org Forum Index -> Forum Blogs
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertising.

Add Karma

rated by members
Add Comment
Show Comments

Posted:     Post subject:

Back to top
myff admin
Site Admin
Site Admin

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206

Add Karma

rated by 281 members
Add Comment
Show Comments

PostPosted: Thu Jun 18, 2009 10:36 am    Post subject: Solution looking for problem  Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
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