[wp-trac] [WordPress Trac] #50223: Performance improvement: Avoid using array_unique() where possible

WordPress Trac noreply at wordpress.org
Wed Apr 9 15:56:18 UTC 2025


#50223: Performance improvement: Avoid using array_unique() where possible
-------------------------------------+------------------------------
 Reporter:  aristath                 |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  lowest                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:  performance
-------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:  reporter-feedback => reporter-feedback close


Comment:

 ^ Agree with the above.

 Plus, these mentioned places in core don't deal with hundreds of thousands
 of array items thousands of times. So any change there would be a micro
 optimization that you don't notice on a regular site.

 Without actual numbers in a real life scenario I'm inclined to close this
 as wontfix.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50223#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list