#31260 closed defect (bug) (fixed)
Replace array_shift() with current() in bundled themes
| Reported by: | SergeyBiryukov | Owned by: | lancewillett |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | performance |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #31259