# About I18n performance in rails 2.2

**URL:** <https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274>\
**Category:** Rails I18n\
**Created:** [August 30, 2008, 3:12am UTC](https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274 "2008-08-30T03:12:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edgarjs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@edgarjs](https://www.ruby-forum.com/u/edgarjs)\
**Post date:** [August 30, 2008, 3:12am UTC](https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274/1 "2008-08-30T03:12:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![edgarjs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@edgarjs](https://www.ruby-forum.com/u/edgarjs)\
**Post date:** [October 27, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274/2 "2008-10-27T19:29:48Z")

</div>

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

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.
