1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00
miniflux-v2/internal/validator
Julien Voisin eed3fcf92a
refactor(locale): delay parsing of translations until they're used
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
makes sense to load them on demand.

The overhead is a single function call and a check in a map, per call to
translation-related functions.
2024-12-09 17:05:14 -08:00
..
category.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
enclosure.go feat: add API routes /v1/enclosures/{enclosureID} 2024-08-18 11:53:19 -07:00
entry.go Add API endpoint to update entry title and content 2023-10-06 23:27:19 -07:00
entry_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed.go Display an error message on edit feed page when the feed URL is not unique 2024-03-15 19:07:54 -07:00
subscription.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
user.go refactor(locale): delay parsing of translations until they're used 2024-12-09 17:05:14 -08:00
validator.go feat: add new settings option to allow external fonts 2024-10-05 21:21:12 -07:00
validator_test.go feat: add new settings option to allow external fonts 2024-10-05 21:21:12 -07:00