[wp-trac] [WordPress Trac] #50700: REST API: Small optimizations to filtering by context
WordPress Trac
noreply at wordpress.org
Tue Jul 21 21:20:37 UTC 2020
#50700: REST API: Small optimizations to filtering by context
--------------------------------------+--------------------------------
Reporter: dlh | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48555" 48555]:
{{{
#!CommitTicketReference repository="" revision="48555"
REST API: Optimize rest_filter_response_by_context performance.
In [47758] a new function `rest_filter_response_by_context` was introduced
to expand the JSON schema features supported by the context filtering
mechanism.
This commit improves the performance of that function by eliminating
repetitive comparisons and loops. Additionally, it improves multi-type
support for object + array types.
Fixes #50700.
Props dlh.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50700#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list