This app is for pen & paper "The Dark Eye" players. It's goal is to enhance the game experience and unburden players from many details of a vast rule system. Fate Explorer recently moved from R Shiny to .NET Blazor.
MIT License
0
stars
0
forks
source link
Improve startup performance through lazy loading? #109
After reviewing it, that does not help, yet. It refers to assemblies. Unless the game data is not wrapped into another assembly, that won't work.
Besides, some of the data is needed rather early after the program starts (e.g. date information).
Another option would be:
Load only those data when the app starts, that are essential for basic operations.
Skills, ... could be loaded when a character is loaded.
Shop data could be loaded when the shop is being opened for the first time (which is actually the case, but it is kinda hidden inside ShopInventoryViMo and not part of IGameDataService).
What I did: app won't wait for the larger data files to load immediately. Instead it keeps the Task promise and fetches the data, once it is requested.
see https://docs.microsoft.com/en-us/aspnet/core/blazor/webassembly-lazy-load-assemblies?view=aspnetcore-6.0
Another option would be:
ShopInventoryViMo
and not part ofIGameDataService
).