You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I performed few simple Lit benchmarks and it doesn't seems to be as fast as it should and can be. I generated new rails APP with one Post model. See results:
First scenario is the simplest one - translation of 1.000 different keys. First Lit run is slow, but it is acceptable next runs will be fast. The second Lit run with hash storage is as fast as plain I18n. But Lit with redis is 34 times slower.
Second and third scenario is more complex (although nothing unusaual I think). This time ervey Lit run is very slow. It's more than 100 times slower than plain I18n. And Lit with redis is more than 200 times slower than plain I18n.
The text was updated successfully, but these errors were encountered:
I performed few simple Lit benchmarks and it doesn't seems to be as fast as it should and can be. I generated new rails APP with one Post model. See results:
1000.times { |i| I18n.t("new_#{i}") }
1000.times { Post.human_attribute_name(:id) }
1000.times { I18n.t('new_1', default: ['new_2', 'default']) }
First scenario is the simplest one - translation of
1.000
different keys. First Lit run is slow, but it is acceptable next runs will be fast. The second Lit run with hash storage is as fast as plain I18n. But Lit with redis is34
times slower.Second and third scenario is more complex (although nothing unusaual I think). This time ervey Lit run is very slow. It's more than
100
times slower than plain I18n. And Lit with redis is more than200
times slower than plain I18n.The text was updated successfully, but these errors were encountered: