Tvde1
Making my functions more generic
it is a little bit complicated, but in this case, the LINQ is more performant.
Your example does:
1. Get all Stats from the database
2. Loop over all the stats
3. If it matches the tag name, add to dictionary
The example I showed uses
IQueryable
, which entity framework is built on to do the following
1. Only take from the database, all the Stats which match the tag name.
(This will do the query:
2. it loops over only the results which are found and makes a dictionary24 replies
Every HttpClient request has a 5 second delay before execution
At first glance it does look like a slow api. Can you use postman or so to verify the api response time?
Otherwise i would look into it avalonia does async await in a different way where there would be time spent waiting
You could also do a profiling session
29 replies