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

WordPress Trac noreply at wordpress.org
Thu Feb 3 22:31:06 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):

 I just submitted a related PR to the PHP project: https://github.com/php
 /php-src/pull/8032
 This PHP PR optimizes the `stream_get_contents()` implementation to skip
 buffering in some cases, which allows slurping the whole file in just one
 `read()` system call instead of refilling the read buffer in 8 kB steps.

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


More information about the wp-trac mailing list