cip / WikiOnBoard

Offline reader for zim files, in particular the wikipedia, for mobile devices. It is based on QT and zimlib. It is cross-platform and supports Symbian, Maemo, Linux and Windows based devices.
http://cip.github.com/WikiOnBoard/
15 stars 2 forks source link

Decrease start-up time #76

Open cip opened 12 years ago

cip commented 12 years ago

Wikionboard 2 takes significantly longer to start than wikionboard 1.

Test-setup: N8 Anna wikipedia_de_all_2010 loads on start-up. wikipedia-en in lib (WikiOnBoard 2 only)

V1.2.13 <7 s (Transition Splashscreen -> index page) V1.1.14 3 s (index page fully displayed, empty index page displayed before already)

Note that WikiOnBoard 2 was appearantly slower in earlier version (see issue 73).

Reduction trials:

  1. Load articlepager with loader (not fully functional). No effect observed, which is not surprising as empty article page loads fast.
  2. Load main page with loader (not functional). Marginal effect. 3.TODO Decrease index loading time. (Perhaps prelload-less entries). Note that using loader for index page has not been considered, as the typical use case is to use always the same zim file. In addition no benefit seen in showing ui before index is fully loaded. (WikiOnBoard 1 behavior). (Would only make at least sense if ui is responsive during loading, but this is very hard to achieve and not worth the effort)

Note that issue is assigned to milestone for tracking only. It is not strictly required to decrease startup time.

cip commented 12 years ago

Nokia Belle (Same setup as before): V1.2.13. <8s
Other difference in belle: Busy-Animation before visibility of splashscreen (~1.5 s) removed (again).
(at least in default system settings) Note that also tried V1.2.8 and it actually appears ~0.5s slower than V1.2.13. (Can this really be just due to use of loader for download dialog box? Strange).

Thus slightly slower. However: Memory usage reduced impressively: ~1 MB used (same test-setup, thus showing index page) ~1.2MB with Article "Graz" opened. (Note: varies a little, e.g. with article open later trial (after reboot) ~800k. With Anna it was AFAIR > 10 MB.
=> No point in trying to reduce memory. (Symbian 5th edition anyway only supported by WikiOnBoard 1 and the typical wikionboard user, who is willing to copy zim files his phone will proably also update to Belle) (Anyway the higher memory consumption on anna is neither a real issue).