Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

ResourceManagerStringLocalizer should cache GetEnumerator result #15

Closed
DamianEdwards opened this issue May 15, 2015 · 0 comments
Closed

Comments

@DamianEdwards
Copy link
Member

Every call to ResourceManagerStringLocalizer.GetEnumerator walks the specified CultureInfo hierarchy to build out a full set of resource names, before calling ResourceManager.GetString for every resource name. Given that resources are only loaded once by ResourceManager we should cache at least the culture walk, and probably the entire enumeration result, per culture.

@DamianEdwards DamianEdwards added this to the 1.0.0-beta5 milestone May 15, 2015
@DamianEdwards DamianEdwards self-assigned this May 19, 2015
DamianEdwards added a commit that referenced this issue May 19, 2015
- Make the cache static
- Make the cache key include the assembly name & the resource name
- #15
DamianEdwards added a commit that referenced this issue May 20, 2015
- Introduced AssemblyWrapper to enable testing
- Cleaned up properties on ResourceManagerStringLocalizer
- #15
DamianEdwards added a commit that referenced this issue May 20, 2015
DamianEdwards added a commit that referenced this issue May 20, 2015
- Introduced AssemblyWrapper to enable testing
- Cleaned up properties on ResourceManagerStringLocalizer
- #15

Change "Strategy" to "Provider"
- #19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant