[wp-trac] [WordPress Trac] #55069: Optimize fread() calls using file_get_contents() or stream_get_contents() (was: Optimize POMO_FileReader.read_all() using stream_get_contents())
WordPress Trac
noreply at wordpress.org
Sun Feb 13 15:12:30 UTC 2022
#55069: Optimize fread() calls using file_get_contents() or stream_get_contents()
---------------------------+-----------------------------
Reporter: maxkellermann | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
---------------------------+-----------------------------
Changes (by SergeyBiryukov):
* component: I18N => General
Old description:
> The method uses fread() with 4 kB blocks, but stream_get_contents() would
> be much faster.
New description:
The POMO_FileReader::read_all() method uses fread() with 4 kB blocks, but
stream_get_contents() would be much faster.
--
Comment:
Just renaming the ticket as the focus has moved to other parts of core as
well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55069#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list