Skip to content

Cache CultureInfoManager default and supported cultures #9 - #10

Closed
yasmoradi wants to merge 1 commit into
developfrom
perf/9-cache-cultureinfomanager-cultures
Closed

Cache CultureInfoManager default and supported cultures #9#10
yasmoradi wants to merge 1 commit into
developfrom
perf/9-cache-cultureinfomanager-cultures

Conversation

@yasmoradi

Copy link
Copy Markdown
Owner

Summary

Caches the default and supported cultures so they are built once instead of on every access.

Changes

  • CultureInfoManager: back DefaultCulture and SupportedCultures with the field keyword (field ??= ...) so they are computed lazily and cached for the app lifetime.

Related Issue

This closes #9

@yasmoradi yasmoradi added performance Speed or memory improvements area / templates Relates to the bit Boilerplate project template labels Jul 22, 2026
@yasmoradi

Copy link
Copy Markdown
Owner Author

Superseded: opened on upstream as bitfoundation#12762. This fork PR was created by mistake.

@yasmoradi yasmoradi closed this Jul 22, 2026
@yasmoradi
yasmoradi deleted the perf/9-cache-cultureinfomanager-cultures branch July 22, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area / templates Relates to the bit Boilerplate project template performance Speed or memory improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CultureInfoManager rebuilds default and supported CultureInfo lists on every access

1 participant