Problem/Motivation

\Drupal\Core\Config\Schema\ArrayElement::hasTranslatableElements() uses the magic iterator unnecessarily wasting time creating array iterator objects.

Proposed resolution

Call $this->getElements() ourselves instead of relying on \Drupal\Core\Config\Schema\ArrayElement::getIterator() to do it for us - which then creates an array iterator object.

Remaining tasks

User interface changes

None

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet

N/a

Issue fork drupal-3627544

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review

This is a very very small performance win but given what we plan to do in #3337864: Ensure "Site default language' is used when installing config by any means and is updated correctly it will result in less work when saving simple configuration.