Problem: Custom lists (To Watch, Watched, and user-created lists) are loading very slowly in the Kanban board and other views. For a custom list with 20 movies, the load time can be 2-4 seconds per list, making the Kanban board take 6-12 seconds to fully populate.
Root cause: The MovieListService.getMovieList() method loads movie data sequentially using a for loop with await inside.
Performance Impact:
- 20 movies × 150ms each (sequential) = 3000ms (3 seconds)
- Multiple custom lists compound the problem
Proposed Solution: Replace sequential loading with parallel loading using Future.wait
Expected Performance Improvement
- Before: 20 movies × 150ms (sequential) = 3000ms
- After: 20 movies loaded in parallel = ~150-200ms (max of all requests)
- Speedup: ~15-20x faster
Problem: Custom lists (To Watch, Watched, and user-created lists) are loading very slowly in the Kanban board and other views. For a custom list with 20 movies, the load time can be 2-4 seconds per list, making the Kanban board take 6-12 seconds to fully populate.
Root cause: The MovieListService.getMovieList() method loads movie data sequentially using a for loop with await inside.
Performance Impact:
Proposed Solution: Replace sequential loading with parallel loading using
Future.waitExpected Performance Improvement