15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Suggestions miniBB Support Forums / Suggestions /   

parseTpl function improvements

Author Nad
#1 | Posted: 16 May 2006 19:35 
I have done some load testing on miniBB and notice that the function parseTpl, that reads HTML template files and paint the page is very heavy. Assuming that the filesystem caching is setup correctly to avoid i/o waits on reading template files, I suspect the time is spent in string manipulation in that function. Under the covers PHP use RegExp for all string manipulations. It would be better to use RegExp instead in the parseTpl function directly to avoid slowdowns.

Any thoughts? code snippets on how to adjust the parseTpl function to use RegExp instead and be able to do the same?

Author Paul
Lead Developer
#2 | Posted: 17 May 2006 07:57 
Could you give an exact examples of your testing? Statistics, screenshots?.. Why do you think this function slows the performance? In comparision to what did you this testing? This function was implemented exactly because regular expression functions are much SLOWER than general string parsing functions.

Suggestions miniBB Support Forums / Suggestions / parseTpl function improvements Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB