getmango / Mango

Mango is a self-hosted manga server and web reader
https://getmango.app
MIT License
1.7k stars 120 forks source link

Avoid a unnecessary sorting #233

Closed Leeingnyo closed 2 years ago

Leeingnyo commented 2 years ago

It's unnecessary to call sorted_entries in load_progress_for_all_entries at deep_read_page_count, because we use its aggregated sum. It would make an initial page loading fast.

I didn't test yet in a large library, but it will be builded soon


I tested it. it seems ok!

Leeingnyo commented 2 years ago

And I hope that this would be merged into v0.24.0, too 😄

hkalexling commented 2 years ago

Good catch! Thanks!