(2016-04-25, 11:20 am)creamyhorror Wrote:(2016-04-20, 10:22 am)ZorgBlub Wrote: Thanks for the feedback!Thanks for the suggestions, and sorry I forgot to reply earlier. I solved the dictionary-download problem by uninstalling & reinstalling the app.
For the load time, I have already noticed long load times though not to that level and very randomly.
Can you tell me what phone you use, what version of android and what ebook you are trying to open? (You can reply through private messages if you prefer)
What I was working on lately was more to optimize the launch of the app itself because it is too slow in my opinion.
For the dictionary download, it is possible that you had an old dictionary base that needs an update. I store the dictionaries myself because I modify them. I trimmed wordnet of some unused data and added the 6th version of Heisig index to kanjidic.
Or it might be a bug…
The long load times (40+ sec for a long book) are still there, though. Samsung Galaxy S5, Android 4.4.2. The "Loading text..." notification appears for maybe 10s, then it disappears and the screen turns unresponsive, and finally the text appears. I tried deleting and re-importing the book (performing copy-to-library folder), but there's no difference.
Maybe what would work is partial loading (5000 characters at a time?) + a more efficient loading function?
Thanks for any suggestions, and hope you'll be able to keep improving the appIf you have suggestions on somewhere in the code to look at, I can give it a try.
Ok, good to know it worked in the end.
For the load time, I need to know what book you use because I suspect that its content is all in one chapter. I'll have a look and see if there is room for optimization but it will take a while since this is a part of the ebook reader app that I did not touch previously. But I agree that it does not matter the size of the book ~40sec load should not happen.
If my guess about the structure of the book is correct, you can always try to detect the structure of the book with calibre and rewrite it with chapters.

If you have suggestions on somewhere in the code to look at, I can give it a try.