mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 09:38:25 +00:00
Reduce some allocations with the magic of spans etc.
This commit is contained in:
parent
eeb5d4bd1e
commit
608cba817c
9 changed files with 267 additions and 95 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue