Forums

Performance of WordPress's "shortcodes" (5 posts)

  1. alistairholt
    Member
    Posted 3 years ago #

    Hi,

    I'm just wondering if anyone knows anything about the performance of the way WordPress applies several filters to a post's content, such as shortcode parsing/conversion, before the post is displayed. As far as I can see from looking through the source code it looks like WordPress must do this a lot, every time the post is displayed? Does anyone have any further insight into this?

    Thanks

  2. alistairholt
    Member
    Posted 3 years ago #

    Bump.

  3. WatchCount.com
    Member
    Posted 3 years ago #

    Nothing solid here; just some thoughts...

    I'm not surprised if WordPress "does a lot" for each filter/parsing action. On the whole, if you think about it, tons of PHP code gets assembled and executed each time a WP page is displayed -- all of the includes, theme files, DB pulls, plugins, etc. It's pretty amazing, actually, in my opinion, that all that can happen and display a page for view in a reasonable amount of time (on a decent web host). So, some shortcode processing, or other post filtering, wouldn't seem to add much to the pile in the larger scheme of things, IMHO.

    -WC

  4. alistairholt
    Member
    Posted 3 years ago #

    Yea, perhaps so. I'd be very interested to see some CPU usage, memory usage and DB query counts from WordPress though. Working with Ruby web frameworks makes me want to know how things are performing.

  5. Andrej Mihajlov
    Member
    Posted 3 years ago #

    WP using a lot of memory especially in wp-admin. If u want a numbers so WP 2.8 takes about 15Mb-20Mb on a clean install per page refresh.

    CPU Usage depends on your hardware sure.

    If u interested about DB query count you can output this info, it's even outputs in a default theme in a HTML comment in the end of generated pages AFAIK, but it's not so much on a clean install.

    Finally, Perfomance depends on your hardware / amount of plugins installed and what are they doing.

Topic Closed

This topic has been closed to new replies.

About this Topic