Skip to content

Improve performance on localization file parsing #171

@Mte90

Description

@Mte90

Feature Description

Ref: https://core.trac.wordpress.org/ticket/17268

The issue now is that for every file mo is read by PHP with a binary parser for every single page request and there isn't any object cache or using the native PHP module that exists since php 5.3 (I am not sure but it was already avalaible in 2017 when I did my patch).

More then half of the wordpress websites are not in english -> https://wordpress.org/about/stats/ it is something that can have an effect in a lot of things including rest endpoints (for gutenberg in 5.0 it was implemented a code that doesn't load a mo file if is not needed in the page to improve the performance).

5 years ago (before php 7) I did some comparison with a patch on wp 4.9 -> https://imgur.com/a/4k9oi (you find everything in the ticket) 500 vs 800 ms with some booster with object cache

Metadata

Metadata

Assignees

Labels

MiscellaneousIssues not related to an existing focus area[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions