-
Notifications
You must be signed in to change notification settings - Fork 203
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
IBX-1467: Fixed OOM regression during Subtree copying #3128
Conversation
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php
Outdated
Show resolved
Hide resolved
@barw4 could you explain why the array receives duplicate entries in the first place? From what I see, if a duplicate identifier is detected, the whole foreach loop is skipped. EDIT: Ok, I've reviewed the code that actually does the merger and I understand now why it happens. I'd propose to switch to a different approach, which will also be quite a bit faster in terms of checking that identifier exists in the array: let's use hashmap instead. Currently, This will change the complexity of check from |
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.
My proposal is in a separate comment.
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php
Outdated
Show resolved
Hide resolved
@ViniTou substantial change to the original solution, hence re-request for review. |
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.
QA approved on eZPlatform 2.5.
Merged into: |
v2.5
Aliases should be now unique which would fix the OOM problems.
Original PR: #3127
Checklist:
$ composer fix-cs
).@ezsystems/engineering-team
).