Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2013 at 14:03 UTC
Updated:
29 Jul 2014 at 22:36 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerThis should hopefully work.
Comment #2
Crell commentedThis seems like a reasonable performance optimization.
Comment #4
dawehnerComment #5
pwolanin commentedso, it looks like in the current implementation this would eliminate potentially several DB queries, at the cost of an extra foreach loop, which seems liek a reasonable tradeoff.
I might prefer a ternary instead of if/else here:
Comment #6
dawehnerThere we go.
Comment #7
tim.plunkettLooks good to me! Thanks @dawehner.
Comment #8
alexpottPerhaps rather than the enjoyably flowery language of a "bunch of routes" we should change this to
// Prefetch routes.... if we need a comment at all :)
Comment #9
dawehnerThere we go.
Comment #10
jibranBack to RTBC
Comment #11
alexpottCommitted 2f0e07f and pushed to 8.x. Thanks!