Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Performance: localization #741

Open
haroldangenent opened this issue Oct 17, 2016 · 5 comments
Open

Performance: localization #741

haroldangenent opened this issue Oct 17, 2016 · 5 comments

Comments

@haroldangenent
Copy link
Member

WordPress localization is quite heavy. After #740 and #739, it would be about 60-70% of each page load, with server load getting higher when using more plugins (more .mo files to read).

Is this worth it? What would be some good alternatives?

The code below would turn off loading all localization files, for testing purposes:

add_filter('override_load_textdomain', '__return_true');
@haroldangenent
Copy link
Member Author

Some first ideas:

  • Don't localize the theme with translatable strings (English by default)
  • Localizeable websites (e.g. Multilingual websites) could have some localization settings in the back-end

@haroldangenent
Copy link
Member Author

haroldangenent commented Oct 17, 2016

This issue is probably a bit broader than this theme, but I'll be using this repo as a discussion platform, since it highly affects Sphynx.

@sboerrigter
Copy link
Member

Isn't Varnish solving all these problems (also #739, #740 an #742)?

@luukdv
Copy link

luukdv commented Oct 18, 2016

@sboerrigter Only for the front-end. During development, a faster website means faster development.

@haroldangenent
Copy link
Member Author

@sboerrigter Varnish doesn't 'solve' this problems, instead it masks them. On production this is fine, except for the high server load when a page or back-end needs to be generated. But during development, this becomes a serious issue. We actually disable 'bulky' plugins most of the time to increase development speed, but the theme could also improve performance (since it's about 50% of the page load right now).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants