mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-06 10:16:18 +00:00
Reduce some allocations with the magic of spans etc.
This commit is contained in:
@@ -315,10 +315,9 @@ namespace Emby.Server.Implementations.Localization
|
||||
}
|
||||
|
||||
const string Prefix = "Core";
|
||||
var key = Prefix + culture;
|
||||
|
||||
return _dictionaries.GetOrAdd(
|
||||
key,
|
||||
culture,
|
||||
f => GetDictionary(Prefix, culture, DefaultCulture + ".json").GetAwaiter().GetResult());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user