• Markus Klein's avatar
    [TASK] Improve performance of array_merge_recursive_overrule · 2917b074
    Markus Klein authored
    The method GeneralUtility::array_merge_recursive_overrule()
    always works on a copy of the given array(s). This is highly
    inefficient when it comes to really big arrays and recursion.
    This patches moves the functionality into the class ArrayUtility
    and changes the behaviour to use a reference to the
    original array.
    All calls in the core are adjusted accordingly.
    Furthermore we deprecate the method in GeneralUtility and
    preserve backward compatibility.
    Resolves: #54251
    Releases: 6.2
    Change-Id: I5499905593c2124897de5998be985e546a3d05ee
    Reviewed-on: https://review.typo3.org/25986
    Reviewed-by: Michiel Roos
    Tested-by: Michiel Roos
    Reviewed-by: Wouter Wolters
    Tested-by: Wouter Wolters
    Reviewed-by: Ernesto Baschny
    Tested-by: Ernesto Baschny