#63812Lower memory use in ArrayUtil->mergeRecursiveWithOverrule
Description
Currently ArrayUtil->mergeRecursiveWithOverrule uses foreach (array_keys($overrule) as $key) to iterate the keys. This means a new array consisting only of the keys has to be created which costs performance and memory:
static public function mergeRecursiveWithOverrule(array &$original, array $overrule, $addKeys = TRUE, $includeEmptyValues = TRUE, $enableUnsetFeature = TRUE) {
foreach (array_keys($overrule) as $key) {
Replacing this with
foreach ($overrule as $key => $unusedValue)
drastically lowers memory usage and enhances performance.