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

WordPress Trac noreply at wordpress.org
Fri Feb 4 20:02:18 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
---------------------------+--------------------------

Comment (by maxkellermann):

 No, I don't have numbers for these specific patches, but the improvements
 should be similar to the numbers I posted on https://github.com/php/php-
 src/pull/8032 because they allow WordPress to take advantage of these
 optimizations.

 However, the WordPress improvement will be very small until my PHP patches
 are merged, because PHP's own internal functions are just as unoptimized
 as WordPress's custom implementation. Only the combination of the two is
 much faster.

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


More information about the wp-trac mailing list