Slow performance under PHP 5

OK, so I’ve been neglecting PHP 5 for a while, and only recently updated a few of my sites to run on it. When I did, I found a problem you might run into with stripShow.

If you have a lot of strips and storylines, you may see a serious performance hit under PHP 5 — this is the result of a quirk in the strtotime() function. It is looking up the default timezone for your site, and that takes a moment — it’s doing that several times for each strip, multiplied by each storyline. The delay on my own site added up to about 14 seconds!

There is a solution. It only lags if the default timezone is not set on your PHP site. This is a known issue with PHP 5, and can be read about here.

For the next version of stripShow (which will be 1.6.1, a bug fix release) I’m removing the references to strtotime() from storyline initialization, as I’ve discovered they’re not necessary anyway.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogplay
  • Fark
  • RSS
  • Technorati
This entry was posted in Bugs. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Donate

    While I don't maintain stripShow for a living, I wouldn't say no to a little donation, if you think the plugin is worth it...

  • Advertisements