Closed C3realGuy closed 7 years ago
I don't know if this would increase performance because IIRC the bbc list is cached (at least for the current page) after it's loaded, and these days most database setups can be more efficient than simple file caching. Still, outside of performance non-issues, I'm mostly interested in not storing PHP code inside the database. ;) Is this mergeable without any issues, btw..?
Only tried it on my local test install but didn't notice any issues.
BBC list is maybe cached (but only from the database? So same query, mysql server just gives back the list without going through the database once again?), but the performance increase comes from not connecting to the database and not iterating over the bbcode list to replace {{some_lang_string}}
. Don't think this is noticeable, but should be better.
I'm gonna merge to make your life easier. ;) There are still spacinazis to fix though!
(And would be good if someone benchmarked both versions!)
I was doing the spacinazi thing when it hit me... you're using php7-specific array representations lol. I'll need to fix those as well.
Or maybe I could use loadSource to change those on the fly depending on the php version...
Still loading bbcodes from plugins from database. Should increase performance.