mokuro-reader icon indicating copy to clipboard operation
mokuro-reader copied to clipboard

Loading times increase dramatically with more volumes

Open alex-is-a-pen opened this issue 1 year ago • 3 comments

Maybe I'm not using the reader as intended, but the more volumes I add to the catalog, the longer it takes to load when going to the main page. It seems to get stuck on the "fetching catalog" phase. The spinning wheel actually freezes in place and Chrome thinks that the website has stopped responding, but if you wait long enough, it eventually resolves itself.

I recorded some "fetching catalog" timings to show this.

10 volumes takes about 1 second. 30 volumes takes about 3 seconds. 60 volumes takes about 30 seconds. 100 volumes takes about 2 minutes. 200 volumes takes about 3 minutes.

These times were taken on a tablet computer running windows 11 and chrome. When I repeated the test on a desktop PC, it took about half the time.

alex-is-a-pen avatar Sep 11 '24 09:09 alex-is-a-pen

I've a fix for this in my fork (https://github.com/Gnathonic/mokuro-reader). It still needs an amount of cleaning up (I broke google drive), but it's good enough to use. I've loaded over 2000 volumes and it takes less than a second to load. This fix also prevents a number of out of memory errors from occuring.

However, you don't need to wait for me to finish. You can use my version at this address https://mokuro-reader-tan.vercel.app/

Gnathonic avatar Feb 05 '25 07:02 Gnathonic

Thanks for this. I have found a bug in this fork. If you enable issues I can write it up for you if you like.

alex-is-a-pen avatar Feb 06 '25 13:02 alex-is-a-pen

Issues have been enabled. Write away.

Gnathonic avatar Feb 06 '25 18:02 Gnathonic