[wp-trac] [WordPress Trac] #55069: Optimize POMO_FileReader.read_all() using stream_get_contents()

WordPress Trac noreply at wordpress.org
Thu Feb 3 22:25:34 UTC 2022


#55069: Optimize POMO_FileReader.read_all() using stream_get_contents()
---------------------------+--------------------------
 Reporter:  maxkellermann  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  6.0
Component:  I18N           |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+--------------------------
Changes (by SergeyBiryukov):

 * focuses:   => performance
 * milestone:  Awaiting Review => 6.0


Comment:

 Interesting, thanks!

 Introduced in [12174] / #10165 for WordPress 2.9. At the time, WordPress
 still needed to support PHP 4.3+. I guess that was the reason for not
 using `stream_get_contents()` here, as it's only available in PHP 5+.

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


More information about the wp-trac mailing list