Make phpBB faster/liter by replacing dynamic strings with static one

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Shaban Sunal
Registered User
Posts: 5
Joined: Fri Aug 17, 2012 6:24 am

Re: Make phpBB faster/liter by replacing dynamic strings with static one

Post by Shaban Sunal » Sat Aug 18, 2012 4:51 pm

Well, you're right..that would be a big mess..in first place with the upgrading..so if someone wants to try..do it but not on a live forum...i've just "half" changed my mind because now i need to move phpBB in a subdomain lol!! so it took me an half hour to replace every string back to their respective dynamic strings..it's a huge change and i need to be sure it's for something ;) i just saw that the CPU load remained the same..i don't know what to think..will look to see if it's for the string changing or because there was a bottleneck on the server :S i'll keep you updated ASAC! ;)

User avatar
drathbun
Registered User
Posts: 72
Joined: Wed Feb 15, 2006 6:40 pm
Location: Texas
Contact:

Re: Make phpBB faster/liter by replacing dynamic strings with static one

Post by drathbun » Sun Aug 19, 2012 1:46 am

Testing for performance really needs to be done on an isolated system. When I was testing template changes (not what you're suggesting, something else) I had a server set up at my house that I used so that I knew I was the only one putting a load on the box. :) Anything else is probably hit and miss... and more miss than hit.
Sometimes you're the windshield, sometimes you're the bug.

User avatar
igorw
Registered User
Posts: 500
Joined: Thu Jan 04, 2007 11:47 pm

Re: Make phpBB faster/liter by replacing dynamic strings with static one

Post by igorw » Sun Aug 19, 2012 12:23 pm

I remember discussing this optimization before. It would be quite easy to compile cached templates with the language baked in, one file per language. It's definitely something worth benchmarking, imo.

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: Make phpBB faster/liter by replacing dynamic strings with static one

Post by imkingdavid » Sun Aug 19, 2012 5:16 pm

igorw wrote:I remember discussing this optimization before. It would be quite easy to compile cached templates with the language baked in, one file per language. It's definitely something worth benchmarking, imo.
IMO it's added disk usage for a potential slight performance increase. I am not aware of any recent complains as to the speed of page loading, so I'm not sure it is really necessary to go through the trouble unless there is a significant increase in performance.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: Make phpBB faster/liter by replacing dynamic strings with static one

Post by EXreaction » Sun Aug 19, 2012 6:09 pm

A few KB, or even MB, what the additional caching may cost, is really not of any significance. Disks are cheap and are only going to get cheaper--and I don't think that anyone has any issues with disk space limitations besides those who allow many GB worth of uploads.

I would be quite interested to hear if there are measurable performance increases by more thorough caching, although I wouldn't expect much.

Senky
Extension Customisations
Extension Customisations
Posts: 308
Joined: Thu Jul 16, 2009 4:41 pm

Re: Make phpBB faster/liter by replacing dynamic strings with static one

Post by Senky » Sun Aug 19, 2012 6:27 pm

Hmm, include compiled language entries in cache seems interesting...

Really, disk space is much cheaper than CPU upgrade, so..maybe we should think little bit about it.

Post Reply