Skip to content

⚡ Performance: Per-lookup ObjectManager calls and URL path variation overhead in UrlRewrite module #40722

@lbajsarowicz

Description

@lbajsarowicz

Performance Issues in Magento_UrlRewrite

Findings

# File Line(s) Issue Consensus Severity
109 Model/Storage/DbStorage.php 115-122, 140-171 Expensive Loop Ops: Creates 4 URL path variations (trimmed/untrimmed, encoded/decoded) per lookup, executes fetchAll on all variants, then O(n) scan with string operations per result. Medium-High
107 Model/CompositeUrlFinder.php 75-76, 91-92 Expensive Loop Ops: ObjectManager->get() per child finder on every URL lookup. getChildren() also runs uasort() on every call. Medium

Methodology

  • Static code analysis cross-validated by 3 AI systems (Claude, Codex gpt-5.4, Gemini 3 Pro)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Confirmation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions