This commit is contained in:
2020-01-28 22:14:25 +00:00
parent 9e8bac46ab
commit 908290e3be

View File

@@ -707,6 +707,8 @@ cache or provide directly the locale to save time repeatedly fetching it when do
private static Dictionary<long, LocaleWordBreakingData> localeWordBreakingDataCache = new Dictionary<long, LocaleWordBreakingData>();
// //called at startup to populate cache
//WAS GOING TO ADD THIS IN RESPONSE TO AN ISSUE WITH EXCEPTION ATTEMPTING TO ADD ALREADY EXISTING DICTIONARY ID 1, BUT IT NEVER HAPPENED AGAIN, SO :SHRUGEMOJI:
//IF IT DOES, MAKE THIS CODE AND POPULATE IT AT SERVER BOOT AND SHOULD BE ADEQUATE
// internal static async Task CacheAllLocaleWordBreakingData(){
// //iterate all locales, cache the word break data
// l = await ct.Locale