mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 20:02:15 +00:00
MangasListState previously stored selected manga IDs as List<int>. Every visible library card called .contains() on that list once per rebuild to determine its highlight state, making each check O(n) in the number of selected items. The provider's own update/selectAll/ selectSome methods also used .contains() and .remove() on a List. Change the state type to Set<int> throughout, making all membership checks O(1). Updated all consumers: library_gridview_widget, library_listview_widget, library_app_bar, library_dialogs, and MangasSetIsReadState. |
||
|---|---|---|
| .. | ||
| managers | ||
| mixins | ||
| providers | ||
| services | ||
| widgets | ||
| image_view_paged.dart | ||
| image_view_vertical.dart | ||
| image_view_webtoon.dart | ||
| reader_view.dart | ||
| u_chap_data_preload.dart | ||