? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
10 Jan 2016

Description

Mod_languages (the module with the language flags), is one of the modules that can be in all pages that has slower performances (if 3 or more languages > 10ms).

So, this PR makes some code changes to get some small performance improvements.

No behaviour is changed.

Performance Tests
Published Languages Before PR After PR
1 ~5.5 ms ~3.7 ms
2 ~7.5 ms ~4.0 ms
3 ~10 ms ~4.2 ms
4 ~12 ms ~4.4 ms
5 ~15 ms ~5.3 ms

Note: Tests were made with Joomla Debug Console in PHP 5.6 - no caching

How to test

  1. Fresh Joomla install with multilanguage (install 5 or more languages)
  2. Apply this patch.
  3. Verify all the flags in mod_languages are working fine

To check the performance improvements, turn on Joomla debugging and check the Application: afterRenderModule mod_languages (xxxxxx) execution time, before and after the PR

Observations

Suggestions, code reviews and improvements are welcome.

avatar andrepereiradasilva andrepereiradasilva - open - 10 Jan 2016
avatar andrepereiradasilva andrepereiradasilva - change - 10 Jan 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jan 2016
Labels Added: ?
avatar wojsmol
wojsmol - comment - 10 Jan 2016
avatar andrepereiradasilva andrepereiradasilva - change - 10 Jan 2016
The description was changed
avatar andrepereiradasilva
andrepereiradasilva - comment - 10 Jan 2016

thanks @wojsmol

avatar wojsmol
wojsmol - comment - 10 Jan 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 10 Jan 2016

thanks again

avatar infograf768
infograf768 - comment - 10 Jan 2016

This works fine.
Could you also correct the remaining pre-existing CS?
;?> to ; ?>

2b4938e 10 Jan 2016 avatar andrepereiradasilva cs
avatar andrepereiradasilva
andrepereiradasilva - comment - 10 Jan 2016

Done.

avatar infograf768 infograf768 - test_item - 11 Jan 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 11 Jan 2016

I have tested this item :white_check_mark: successfully on 2b4938e


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8869.

avatar dgt41 dgt41 - test_item - 17 Jan 2016 - Tested successfully
avatar dgt41
dgt41 - comment - 17 Jan 2016

I have tested this item :white_check_mark: successfully on 2b4938e


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8869.

avatar dgt41 dgt41 - change - 17 Jan 2016
Status Pending Ready to Commit
avatar dgt41
dgt41 - comment - 17 Jan 2016
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jan 2016
Labels Added: ?
avatar wilsonge wilsonge - reference | 1bf94b9 - 17 Jan 16
avatar wilsonge
wilsonge - comment - 17 Jan 2016

Merged with 1bf94b9

avatar wilsonge wilsonge - close - 17 Jan 2016
avatar joomla-cms-bot joomla-cms-bot - close - 17 Jan 2016
avatar wilsonge wilsonge - change - 17 Jan 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-01-17 13:36:26
Closed_By wilsonge
avatar wilsonge wilsonge - close - 17 Jan 2016
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jan 2016
Labels Removed: ?
avatar wilsonge wilsonge - change - 17 Jan 2016
Milestone Added:
avatar andrepereiradasilva andrepereiradasilva - head_ref_deleted - 17 Jan 2016

Add a Comment

Login with GitHub to post a comment