SiteExporter repeats indexed arrays, potentially bloating recipe.yml to tens of thousands of lines
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3577153. -->
Reported by: [phenaproxima](https://www.drupal.org/user/205645)
Related to !833
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>While compiling config actions, SiteExporter uses NestedArray::mergeDeep(), which preserves integer keys. When merging indexed arrays -- in particular, user permissions -- that means all existing permissions are repeated, which if you export the recipe multiple times, recipe.yml can grow at an exponential rate.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Don't bother with a deep merge; just fully overwrite the full config action for a particular config object or entity.</p>
issue