miniflux/v2

Lazily parse translations

Closed this issue · 2 comments

While doing some profiling for #2900, I noticed that miniflux.app/v2/internal/locale.LoadCatalogMessages is responsible for more than 10% of the consumed memory. As most miniflux instances won't have enough diverse users to use all the available translations at the same time, it would be nice to lazily load them in memory.

image

Fine by me. Do you want to take a stab at it?

Done in #2988