[wp-trac] [WordPress Trac] #56481: Short-circuit HEAD methods in Core controllers

WordPress Trac noreply at wordpress.org
Fri Nov 8 23:36:40 UTC 2024


#56481: Short-circuit HEAD methods in Core controllers
--------------------------------------+------------------------------------
 Reporter:  TimothyBlynJacobs         |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api, performance
--------------------------------------+------------------------------------

Comment (by antonvlasenko):

 I'd like to share the performance improvement data I measured after
 applying the three submitted PRs to the relevant controllers:

 - [https://github.com/WordPress/wordpress-develop/pull/7349 Posts
 controller]: 122ms improvement (100 posts per page);
 - [https://github.com/WordPress/wordpress-develop/pull/7449 Comments
 controller]: 179ms improvement (100 comments per page);
 - [https://github.com/WordPress/wordpress-develop/pull/7591 Terms
 controller]: 124ms improvement (100 categories per page);

 @TimothyBlynJacobs, any feedback on these PRs would be greatly
 appreciated!

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


More information about the wp-trac mailing list