prime expensive tasks

This commit is contained in:
Kyle Spearrin 2019-05-28 17:18:27 -04:00
parent 25d02cec25
commit 6218c65ec6
2 changed files with 11 additions and 7793 deletions

View File

@ -116,11 +116,7 @@ namespace Bit.App
{
System.Diagnostics.Debug.WriteLine("XF App: OnStart");
await ClearCacheIfNeededAsync();
// Prime the word list
var wordTask = Task.Run(() =>
{
// var word = WordList.EEFLongWordList[1];
});
Prime();
}
protected async override void OnSleep()
@ -135,6 +131,7 @@ namespace Bit.App
System.Diagnostics.Debug.WriteLine("XF App: OnResume");
_messagingService.Send("cancelLockTimer");
await ClearCacheIfNeededAsync();
Prime();
}
private void SetCulture()
@ -251,5 +248,14 @@ namespace Bit.App
});
}
}
private void Prime()
{
Task.Run(() =>
{
var word = EEFLongWordList.Instance.List[1];
var parsedDomain = DomainName.TryParse("https://bitwarden.com", out var domainName);
});
}
}
}

File diff suppressed because it is too large Load Diff