Skip to content

Commit

Permalink
measure time to load translations on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 7, 2024
1 parent f978d84 commit dd711e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/MessageCompiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ import play.api.i18n.Lang
// format: OFF
private object Registry {

val all = Map[Lang, MessageMap](\n$content)
val all = lila.common.Chronometer.syncEffect(Map[Lang, MessageMap](\n$content)): lap =>
logger.info("Loaded " + lap.result.size + " langs in " + lap.showDuration)

val default: MessageMap = all(defaultLang)

Expand Down

0 comments on commit dd711e4

Please sign in to comment.