[PR #11332] Refator array_map into simple loop for performance #12953

Open
opened 2026-01-22 16:15:42 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11332

State: closed
Merged: Yes


Alternative to more complex performance refactoring in #11316

This already reduces performance overhead measured by Tideways by 56%. It shows again how expensive array_map is vs a simple foreach in performance sensitive code path.

Bildschirmfoto 2024-03-02 um 17 35 22

Related to https://github.com/doctrine/orm/issues/11087

**Original Pull Request:** https://github.com/doctrine/orm/pull/11332 **State:** closed **Merged:** Yes --- Alternative to more complex performance refactoring in #11316 This already reduces performance overhead measured by Tideways by 56%. It shows again how expensive array_map is vs a simple foreach in performance sensitive code path. <img width="650" alt="Bildschirmfoto 2024-03-02 um 17 35 22" src="https://github.com/doctrine/orm/assets/26936/54cfacb4-1004-4a91-bee7-1f4fe95741ae"> Related to https://github.com/doctrine/orm/issues/11087
admin added the pull-request label 2026-01-22 16:15:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12953