[wp-trac] [WordPress Trac] #45553: Improve wp_is_stream() performance

WordPress Trac noreply at wordpress.org
Wed Jan 9 09:50:23 UTC 2019


#45553: Improve wp_is_stream() performance
----------------------------+---------------------
 Reporter:  swissspidy      |       Owner:  pento
     Type:  enhancement     |      Status:  closed
 Priority:  low             |   Milestone:  5.1
Component:  Filesystem API  |     Version:
 Severity:  minor           |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44506" 44506]:
 {{{
 #!CommitTicketReference repository="" revision="44506"
 Filesystem: Improve `wp_is_stream()` performance.

 Instead of turning the return value of `stream_get_wrappers()` into a
 regex to match the scheme, we can instead extract the scheme and search
 the return value of `stream_get_wrappers()`.

 Props schlessera, swissspidy.
 Fixes #45553.
 }}}

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


More information about the wp-trac mailing list