Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow performance on boot with many translations #66

Open
listrophy opened this issue Dec 21, 2015 · 0 comments
Open

Slow performance on boot with many translations #66

listrophy opened this issue Dec 21, 2015 · 0 comments

Comments

@listrophy
Copy link

We added lit to a Spree project, and now it takes significantly longer to boot up the server.

A quick benchmark (on my dev machine) yielded:

  • ~5.5sec with config/initializers/lit.rb commented out
  • ~12.5sec with config/initializers/lit.rb intact

By using Spree, we automatically get ~1500 keys out of the box, multiplied by about 20 locales. As a first attempt at improving speeds, we've removed all but the en-US locales (which is all we need right now). That improved the bad number to about 9.5sec. Better, but still not great.

I'm willing to help out making improvements, but I'd like some guidance first. Any thoughts?

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

No branches or pull requests

3 participants