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:

Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

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