About I18n performance in rails 2.2

Hello,

I’m trying the new I18n feature that will be included in Rails 2.2

But I have a doubt running in my head:

What’s faster(better, more performance)?:

  1. Put a I18n.load_translations in an initializer that loads all
    available locales when the server starts.
  2. Put a I18n.load_translations in the ApplicationController that loads
    only the locale proper to the current request.

I hope I was clear… :S

Regards, and thanks in advance.

Hi Edgar,

What’s faster(better, more performance)?:

  1. Put a I18n.load_translations in an initializer that loads all
    available locales when the server starts.
  2. Put a I18n.load_translations in the ApplicationController that loads
    only the locale proper to the current request.

If you’ve got the RAM then #1 will be faster for sure. I’d recommend it,
since RAM is cheap anyway.


Roderick van Domburg
http://www.nedforce.nl

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs