DDC-2166: Improve Identifier hashing in IdentiyMap #2725

Open
opened 2026-01-22 14:01:43 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 25, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

There are currently some drawbacks with identifier hashing:

  • They only work on one level for derived keys
  • The code is suspect to high performance requirements
  • Composite Keys might be suspect to weird bugs if they contain spaces.

There is a PR by goetas (https://github.com/doctrine/doctrine2/pull/232) that solves some issues, however adds a performance hit.

We should move the conditional logic of this code out and use a strategy pattern to improve both performance and robustness of this code.

Originally created by @doctrinebot on GitHub (Nov 25, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: There are currently some drawbacks with identifier hashing: - They only work on one level for derived keys - The code is suspect to high performance requirements - Composite Keys might be suspect to weird bugs if they contain spaces. There is a PR by goetas (https://github.com/doctrine/doctrine2/pull/232) that solves some issues, however adds a performance hit. We should move the conditional logic of this code out and use a strategy pattern to improve both performance and robustness of this code.
admin added the Improvement label 2026-01-22 14:01:43 +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#2725