1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00
miniflux-v2/internal/ui
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
..
form feat(integration): add cubox integration 2024-10-18 18:06:09 -07:00
session Add WebAuthn / Passkey integration 2023-11-05 18:57:35 +01:00
static feat(webauthn): show help message regarding username and non-discoverable credentials 2024-10-26 21:49:23 -07:00
view Minor code simplification in internal/ui/view/view.go 2024-02-25 17:31:44 -08:00
about.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
api_key_create.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
api_key_list.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
api_key_remove.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
api_key_save.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
bookmark_entries.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
category_create.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_edit.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
category_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_entries_all.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_entries_starred.go feat: add button to show only starred entries per category 2024-09-02 21:23:17 -07:00
category_feeds.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_list.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_mark_as_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_refresh.go fix: Use FORCE_REFRESH_INTERVAL config for category refresh 2024-04-19 11:58:13 -07:00
category_remove.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_save.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
category_update.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
entry_bookmark.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
entry_category.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
entry_enclosure_save_position.go Avoid warnings in ui package 2024-03-15 19:49:39 -07:00
entry_feed.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
entry_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_save.go Add webhook event for saving entry 2023-09-10 18:17:33 -07:00
entry_scraper.go Rename PROXY_* options to MEDIA_PROXY_* 2024-03-20 21:28:28 -07:00
entry_search.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
entry_tag.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
entry_toggle_bookmark.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_unread.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
entry_update_status.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_edit.go feat(integration): add ntfy integration 2024-07-13 17:51:17 -07:00
feed_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_entries_all.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_icon.go http/response: add brotli compression support 2024-04-19 12:16:49 -07:00
feed_list.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_mark_as_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_refresh.go Make use of printer.Print when possible 2024-02-28 19:24:41 -08:00
feed_remove.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_update.go Add description field to feed settings 2024-05-06 15:40:36 -07:00
handler.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
history_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
history_flush.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
integration_pocket.go Make use of printer.Print when possible 2024-02-28 19:24:41 -08:00
integration_show.go feat(integration): add cubox integration 2024-10-18 18:06:09 -07:00
integration_update.go Make use of printer.Print when possible 2024-02-28 19:24:41 -08:00
login_check.go feat: Add option to disable local auth form 2024-08-12 19:27:08 -07:00
login_show.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
logout.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
middleware.go Use constant-time comparison for anti-csrf tokens 2024-03-03 20:28:13 -08:00
oauth2.go Add profile scope to OIDC integration to support accounts without email 2023-09-08 20:26:42 -07:00
oauth2_callback.go Make use of printer.Print when possible 2024-02-28 19:24:41 -08:00
oauth2_redirect.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
oauth2_unlink.go feat: Add option to disable local auth form 2024-08-12 19:27:08 -07:00
offline.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
opml_export.go Add command line argument to export user feeds 2023-09-27 21:45:23 -07:00
opml_import.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
opml_upload.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
pagination.go Add navigation to last/first page 2024-06-28 20:19:38 -07:00
proxy.go feat(mediaproxy): pass original filename in Content-Disposition header 2024-10-30 20:44:19 -07:00
search.go Move search form to a dedicated page 2024-03-01 16:56:15 -08:00
session_list.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
session_remove.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
settings_show.go refactor(locale): delay parsing of translations until they're used 2024-12-09 17:05:14 -08:00
settings_update.go refactor(locale): delay parsing of translations until they're used 2024-12-09 17:05:14 -08:00
share.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
shared_entries.go feat: add pagination to shared entries listing 2024-09-02 21:27:17 -07:00
static_app_icon.go http/response: add brotli compression support 2024-04-19 12:16:49 -07:00
static_favicon.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
static_javascript.go feat: add license info to js, for LibreJS compatibility 2024-08-12 20:43:18 -07:00
static_manifest.go Status bar is unreadable when using PWA in dark mode on Firefox Android 2023-09-11 20:24:42 -07:00
static_stylesheet.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
subscription_add.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
subscription_bookmarklet.go feat: replace xurls third-party module with an ad-hoc regexp 2024-10-21 20:48:12 -07:00
subscription_choose.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
subscription_submit.go Use struct embedding to reduce code duplication 2024-03-18 16:23:44 -07:00
tag_entries_all.go ui: add tag entries page 2024-04-14 20:08:38 -07:00
ui.go feat: add button to show only starred entries per category 2024-09-02 21:23:17 -07:00
unread_entries.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
unread_entry_category.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
unread_entry_feed.go feat: mark media as read when playback reaches 90% 2024-07-28 12:29:45 -07:00
unread_mark_all_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
user_create.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
user_edit.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
user_list.go Delay call of view.New after logging the user in 2024-03-03 20:32:15 -08:00
user_remove.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
user_save.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
user_update.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
webauthn.go fix(webauthn): add backup eligibility flag workaround to avoid a 401 2024-10-26 18:36:38 -07:00