[wp-hackers] Profiling Wordpress filters and actions

Stephen Rider wp-hackers at striderweb.com
Fri Jan 9 00:54:58 GMT 2009


On Jan 8, 2009, at 9:27 AM, Austin Matzko wrote:

> Since comments are not usually edited that much it makes sense to
> apply the formatting functions to the comment text *before* it's saved
> (using the 'pre_comment_content' filter perhaps) rather than on
> rendering.  That would take care of a big chunk of those performance
> issues.
>
> Of course, changing this in core would involve some tricky
> backwards-compatibility issues.

...and even more down the road if the filter outputs ever change.   
Probably best to filter at render.

Stephen


More information about the wp-hackers mailing list