2007-02-20, 09:07 AM
I have recently noticed that we can gain a good amount of performance benefits, if we store the bbcode in the database, in "parsed" format. It's common sense, that there are always more views than postings, and also 1 post versus listing of 15 posts surely offers a great difference.
Currently, as I see, MyBB parses the BBCode on-the-fly, which I find nothing wrong with, however, for the big boards having 100s of posts to be parsed on-the-fly, it surely makes a difference. In today's world of tera-bytes of space, it doesn't really matters if it takes few megabytes of extra space for those hundreds of thousands of posts, but it surely makes a great difference, if so much BBCode -> HTML conversion is neglected.
Foreach topic view (I am not sure, but I think it's 10 posts / page? or 15?), you use so many regexes and string functions to convert the BBCodes to HTML, and you can actually save that processing power.
Plus, the same can be true for signatures! While usually on forums with professionals, BBcode is used less in posts, it still is used in signatures. On the other hand, on forums with lots of teenagers and entertainment forums like mine, you have a lot lot of BBcode used all around in the posts and signatures.
It can offer a great performance benefit. So, please consider it in MyBB 2.0 (or in 1.4 if it's far from being released soon).
Currently, as I see, MyBB parses the BBCode on-the-fly, which I find nothing wrong with, however, for the big boards having 100s of posts to be parsed on-the-fly, it surely makes a difference. In today's world of tera-bytes of space, it doesn't really matters if it takes few megabytes of extra space for those hundreds of thousands of posts, but it surely makes a great difference, if so much BBCode -> HTML conversion is neglected.
Foreach topic view (I am not sure, but I think it's 10 posts / page? or 15?), you use so many regexes and string functions to convert the BBCodes to HTML, and you can actually save that processing power.
Plus, the same can be true for signatures! While usually on forums with professionals, BBcode is used less in posts, it still is used in signatures. On the other hand, on forums with lots of teenagers and entertainment forums like mine, you have a lot lot of BBcode used all around in the posts and signatures.
It can offer a great performance benefit. So, please consider it in MyBB 2.0 (or in 1.4 if it's far from being released soon).