#31260 closed defect (bug) (fixed)
Replace array_shift() with current() in bundled themes
Reported by: | SergeyBiryukov | Owned by: | lancewillett |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | performance | Cc: |
Description
Background: #31182
array_shift()
recalculates array indexes, and can be slow on large arrays. Most of the time, this is unnecessary, as we only use it to get the first element of the array, and the array is never used later.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Related: #31259