Log in

View Full Version : Question about the vB BBCode Parser


Reno of Shinra
08-01-2004, 12:06 AM
Just a general question on the speed/efficiency on the current (and past) vBulletin BBCode system.

How many iterations does the BBCode system take? Is it one or multiple passes?

Brad
08-01-2004, 03:15 AM
Each time bbcode is coverted to html multiple preg_replace calls are made, check out the function parse_bbcode2(); in functions_bbcodeparse.php.

This is why the post cache is so important, by saving the raw output in a second table you avoid extra processing everytime someone view's a thread.

Xenon
08-01-2004, 10:55 AM
there is a setting of vb (just accessabel when operating in debug mode) where you can define if vb should parse recursive/fast or whatever the thrid was ^^