Skip to content

⚡ [Performance] Cache deserialized AppSettings in SettingsService - #68

Merged
spelech merged 2 commits into
mainfrom
perf-optimize-settings-service
Sep 20, 2026
Merged

spelech merged 2 commits into
mainfrom
perf-optimize-settings-service

Conversation

@spelech

@spelech spelech commented Sep 20, 2026

Copy link
Copy Markdown
Owner

💡 What: Caches the deserialized AppSettings instance in SettingsService after loading from disk, and invalidates/updates it on SaveSettings.

🎯 Why: SettingsService.LoadSettings() was repeatedly hitting disk and deserializing JSON on every call throughout the application lifecycle.

📊 Result: Repeated calls to LoadSettings() return the cached instance immediately without disk I/O, reducing execution time and allocation overhead significantly.

Addresses Jules session 9324059400750656685.

@spelech
spelech merged commit 7d84ce3 into main Sep 20, 2026
2 checks passed
@spelech
spelech deleted the perf-optimize-settings-service branch September 20, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant