miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Suggestions miniBB Support Forums / Suggestions /  
 

parseTpl function improvements

 
Author Nad
Partaker
#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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑