Have a content type plugin that has hundreds of subtypes.

All the subtypes are loaded when content types are rendered so this gets very expensive.

It'd be useful to return ArrayAccess/Iterator for these to reduce performance/memory requirements on rendering and listing, but the code currently casts everything to array.

Patch coming up.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Status: Active » Needs review
FileSize
1.13 KB

And the patch.

indytechcook’s picture

Re-rollled patch