2005-02-04, 03:22 AM
Normally in myBB every time a thread is loaded every post with a signature must be parsed. Every time a post with a signature comes along mybb sends the un-parsed signature to the postify function and runs multiple replace calls for bbcode, smiles, etc.
If a user posts in a thread two or more time, myBB will send the un-parsed signature to postify each time it shows up.
With my hack installed once a sig is parsed it is saved in an array. As myBB loops over the posts and postify's them one by one it can look at this array and make sure it has not already parsed a users sig.
If it has already parsed the sig it uses the saved sig stored in the temporary array, otherwise it will send the sig to postify, and save the output for use at a later time.
Generation times will drop with this hack, more so for boards with high post per page settings or users that like to double post a lot.
If a user posts in a thread two or more time, myBB will send the un-parsed signature to postify each time it shows up.
With my hack installed once a sig is parsed it is saved in an array. As myBB loops over the posts and postify's them one by one it can look at this array and make sure it has not already parsed a users sig.
If it has already parsed the sig it uses the saved sig stored in the temporary array, otherwise it will send the sig to postify, and save the output for use at a later time.
Generation times will drop with this hack, more so for boards with high post per page settings or users that like to double post a lot.