-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve menu render performance #130
base: 4.0-dev
Are you sure you want to change the base?
Conversation
} | ||
elseif ($values[$key] === null) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a typo:
"// If access filter is not set, use "
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done thanks
Nice optimizations. Looking good on code review. I hope I didn't miss anything. Another pair of eyes would be good. |
@@ -16,36 +16,38 @@ | |||
$id = ' id="' . $tagId . '"'; | |||
} | |||
|
|||
$pathSize = count($path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$pathFlip = array_flip($path); ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 20, sorry did not mark correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also calling $pathReserve (note 'reserve' instead of 'reverse') $pathFlipped or $pathFlip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right
@frankmayer this is only in my repo i did not submited a PR to joomla yet 😄 |
:D ah yes, didn't notice that... |
Pull Request for Issue # .
Summary of Changes
Improves performance and memory usage of the menu render.
Testing Instructions
TODO
Performance improvements
Test scenario:
Before
After
Documentation Changes Required
None.