MONO
MONO
CC#
Created by MONO on 5/5/2024 in #help
How to Optimize my API calls?
Trying to get better at some C# with WPFUI, and started a project, is kinda of an imdb application. Showing TV shows, movies, info on both and actors etc. Im using an API to get all the latest movies from one place, and get the ID's from that JSON list. Putting them into an List. And then load all the movie info from another API(TMDB), using the IDs from the first. Its working just fine, but when loading, it takes like 5-10sec before anything is being shown. And when scrolling, its starting to load the new posters, so that takes another 3-5 sec before loading. If i then scroll back up, its loading the first rows again, taking another 3-5 sec. It seems kinda weird and im not sure how to get the scrolling fixed, and how to optimize the API calls, so it does not take 5-10 sec for the info to load. Can this be done in a better way then what i have done? I have created a Gist how give a better view of the code: https://gist.github.com/PatrickRorth/4b634a10eb4a47bd7621d159cfa73d0e I have also added a small recording, showing how it reloads images again after scrolling. Any help would be appriciated.
21 replies
CC#
Created by MONO on 5/4/2024 in #help
✅ WPF UI Design help
No description
23 replies
CC#
Created by MONO on 5/1/2024 in #help
Cant get my list to work
No description
6 replies