String replacements generally don't add much performance overhead - I've written a mod that does something similar to this, but decided to make the code global (a preg_replace on $output) as it only took about 0.0005s to do 9 matches. Mind you this is on a dedicated server- not much is able to put a dent in it apart from vbseo's crr's, which really hurt if you have too many.
|