? Success

User tests: Successful: Unsuccessful:

avatar frankmayer
frankmayer
28 Dec 2016

Summary of Changes

This PR optimizes two independent loops of the same (one for and one foreach) into a single loop.
Additionally, the costly assignments are now only executed, when it makes sense (aka the condition is true).

This PR is an optimized extension of the rejected PR #12299

Testing Instructions

Should not change behavior.
Code review

Documentation Changes Required

None

avatar frankmayer frankmayer - open - 28 Dec 2016
avatar frankmayer frankmayer - change - 28 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Dec 2016
Category Front End Plugins
avatar andrepereiradasilva
andrepereiradasilva - comment - 28 Dec 2016

I have tested this item successfully on 83c6435

Code review.
Also aplied patch, enabled search component and search plugins, created categories and frontend search found the categories.


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

avatar andrepereiradasilva andrepereiradasilva - test_item - 28 Dec 2016 - Tested successfully
avatar fastslack
fastslack - comment - 29 Dec 2016

@test all seems to work as expected after apply this patch. This change has sence . Code review ok.

avatar laoneo
laoneo - comment - 29 Dec 2016

@frankmayer can you please exclude com_fields and the system plugin from your code style cleanup. I do a bigger refactoring and don't want to solve conflicts regularly. Thanks for understanding.

avatar dgt41
dgt41 - comment - 29 Dec 2016

I have tested this item successfully on 83c6435


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

avatar dgt41 dgt41 - change - 29 Dec 2016
Status Pending Ready to Commit
avatar dgt41 dgt41 - test_item - 29 Dec 2016 - Tested successfully
avatar frankmayer
frankmayer - comment - 29 Dec 2016

@laoneo of course, I understand. Will exclude those in future cleanups (I'll check on current ones). Would you be so kind to let me know, when this work can be resumed?

avatar frankmayer
frankmayer - comment - 29 Dec 2016

@laoneo reverted in existing PRs with the following commits:

It would be good, if you can include those changes directly though, if still applicable.

avatar laoneo
laoneo - comment - 29 Dec 2016

Thanks, when PR #13319 is merged.

avatar jeckodevelopment jeckodevelopment - change - 29 Dec 2016
Milestone Added:
avatar wilsonge wilsonge - change - 29 Dec 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-29 15:07:09
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 29 Dec 2016
avatar wilsonge wilsonge - merge - 29 Dec 2016
avatar wilsonge wilsonge - reference | 89b8136 - 29 Dec 16
avatar wilsonge wilsonge - merge - 29 Dec 2016
avatar wilsonge wilsonge - close - 29 Dec 2016

Add a Comment

Login with GitHub to post a comment