|
||||||
Views:
11,030,485 |
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search | 11-21-24 12:08 PM |
||||
Guest: Register | Login |
0 users currently in AcmlmBoard Developer Zone | 5 bots |
Main - AcmlmBoard Developer Zone - Post rendering optimization |
Arisotura |
| ||
Developer
pancakes Level: 84 Posts: 897/1870 EXP: 5546101 Next: 115851 Since: 01-05-12 From: France Last post: 37 days Last view: 37 days |
That's one thing, atleast on my board. Rendering posts takes time, and especially, running them through the post filter.
Some possible optimizations, mostly discussing them: Storing posts preparsed to a point * can't fully preparse them as some markup will be dynamic (/me, user tag, etc) * very little work when rendering posts * any change to markup requires reparsing all the posts (can be done by just marking them dirty and reparsing them when needed, but eh, complication) * takes twice as much DB space (need to keep the original post) Detecting which tags are present before running the postfilter ... and only running the needed filters * would probably only benefit big posts if done on individual tags * could benefit a lot of posts if done on a global level though (ie. if post contains no BBCode at all, skip a big chunk of the postfilter) Oh and PHP also has an extension for parsing BBCode. It won't be available everywhere, but it's still worth looking into. They say it's faster than using regexes, and it looks flexible too. ____________________ Kuribo64 - melonDS want some revolution in your coffee? |
Arisotura |
| ||
Developer
pancakes Level: 84 Posts: 899/1870 EXP: 5546101 Next: 115851 Since: 01-05-12 From: France Last post: 37 days Last view: 37 days |
Main - AcmlmBoard Developer Zone - Post rendering optimization |
Acmlmboard v2.5.6 (06/11/2024) © 2005-2024 Acmlm, Emuz, et al. |
MySQL - queries: 66, rows: 478/511, time: 4.555 seconds. |