Optimized Acronym module
Posted: 13 June 2008 05:02 PM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2007-10-02

Hi Solspace,

I recently noticed my site’s performance was pretty bad. I activated some ExpressionEngine debug output and saw the Acronym module ran two queries for each exp:acronym tag being used in the templates.
So I had a look at the source code and made some modifications for better performance as advised in the ExpressionEngine developer performance guidelines at http://expressionengine.com/docs/development/guidelines/performance.html

You can get the optimized mod.acronym.php file in a zip archive at http://www.neverpanic.de/temp/mod_acronym.zip

I did a little benchmarking (the benchmark source code is still in the file, but commented - so if you want to run the benchmark on your own, go ahead):
On the page I tested, there were 9 calls to 1 acronym group, time elapsed for this with the original module 0.47111 seconds, time elapsed with my optimized module 0.06547 seconds.
That’s roughly a 86% drop.

I guess you’d probably want to update your module accordingly, so others can benefit from the optimizations aswell.

I would have notified you using the contact form, but I can’t attach PHP files and it seems the contact form blocks submissions with URLs (ever thought of using the freeform_module_validate_end hook in the Akismet extension for spam checking? I hacked that into my Akismet extension - it’s messy though).

Profile
 
 
Posted: 16 June 2008 06:33 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

NeverPanic,

Thanks for the contribution! smile

Acronym is one of our older modules and definately needs some attention…

We’re actually in the process of optimizing several of our modules wink
We’ve started with the Ratings Module (still yet to be released), which we’ve gotten most calls about 10 times faster, much like your results. smile

 Signature 
Profile
 
 
Posted: 12 September 2008 05:19 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  3
Joined  2007-10-02

It’s been almost 60 days and Acronym still has not been optimized. Quite sad nobody has some time to review the obvious optimizations I made in less than 3 hours to include them in the official module… :(
If somebody already did the work for you, what’s the problem in reviewing the changes and including it in your release?

Profile
 
 
Posted: 15 September 2008 08:36 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

NeverPanic,

I apologize for the long wait on this, and again, I thank you for the contribution. smile

We are currently very busy and we just have not had a chance to get to this module. There is a lot of other software that takes priority.
We will get to it in the future though.

Thank you smile

 Signature 
Profile