Ticket #10147 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

XO 1.5 Wikipedia-EN slow to open Links

Reported by: reuben Owned by: martin.langhoff
Priority: normal Milestone: 10.1.3
Component: wikibrowse-activity Version: not specified
Keywords: Cc: godiard, tabitha, erikos, sridhar
Action Needed: no action Verified: no
Deployments affected: Blocked By:


OS202 - Wikipedia EN 20

It is painfully slow to open links. So slow that one would believe it is not working and would continue to re-click or try other links. If it is not possible to speed it up can we add a "Loading" message.


activity-wikipedia.svg (4.4 kB) - added by godiard 3 years ago.

Change History

Changed 4 years ago by cjb

  • milestone changed from Not Triaged to 1.5-software-update

ES is faster; the problem with EN is that it includes many more templates, which get rendered as if they were individual pages.

We could just disable templates altogether for EN. It would get much faster, but you'd lose things like factboxes that are often the information that people are specifically looking for in an article.

Changed 4 years ago by reuben

  • milestone changed from 1.5-software-update to 1.5-software-later

Changed 4 years ago by godiard

  • cc godiard added

Changed 3 years ago by martin.langhoff

  • cc tabitha added
  • owner changed from cjb to martin.langhoff
  • milestone changed from 1.5-software-later to 10.1.3

Both WikipediaEN and ES were painfully slow.

I've profiled it and narrowed down on template expansion. By inlining/expanding the templates directly in the datadump, we shrink the data and make it radically faster.

Sample timings on XO1.5 are

Argentina 31s to 13s (worst-case - extremely heavy page in size and template usage, 365KB HTML payload!) Andorra 22s to 2.6s (large-ish page, heavy template usage - 71KB HTML payload) Lógica 6s to 3s

Please test the bundles at http://dev.laptop.org/~martin/wikipedia_es/ and http://dev.laptop.org/~martin/wikipedia_en/

Changed 3 years ago by martin.langhoff

  • next_action changed from never set to add to build

Changed 3 years ago by martin.langhoff

The test method for the timings above was "curl -o /dev/null [url]".

Loading those pages from the webbrowser will take a bit longer because the webbrowser has to interpret/render the HTML, and will request additional images, CSS files, etc.

Changed 3 years ago by martin.langhoff

Those XO bundles need a bit of fiddling -- at the moment they don't install cleanly.

Changed 3 years ago by martin.langhoff

  • cc erikos added

Updated the bundles, they are good now. Side-by-side testing on two XO-1.5s shows a huge improvement.

The Browse.xo improvement of showing a 'busy' cursor also helps the perception of responsiveness.

Changed 3 years ago by godiard

I have downloaded the files but don't install in my XO.

I don't know if i have the last version

[gonzalo@nautilus Activities]$ md5sum Wiki*21.xo
778da766b3f5768403ad45911ee50614  Wikipedia-21.xo
565de449d68e6afcf6daf7b4d2281da5  WikipediaEN-21.xo


1291299753.906911 DEBUG root: Creating activity bundle
1291299753.907681 DEBUG root: get_file asked for file with path '/media/6A73-2657/Wikipedia-21.xo'
1291299754.210816 DEBUG root: locale/en_US/activity.linfo not found.
1291299754.211700 DEBUG root: locale/en/activity.linfo not found.
1291299754.212560 DEBUG root: Installing activity bundle
Archive:  /media/6A73-2657/Wikipedia-21.xo
  inflating: /home/olpc/Activities/Wikipedia.activity/activity/activity.info  
  inflating: /home/olpc/Activities/Wikipedia.activity/activity/activity-wikipedia.svg  
  inflating: /home/olpc/Activities/Wikipedia.activity/_wp.so  
  inflating: /home/olpc/Activities/Wikipedia.activity/MANIFEST  
caution: excluded filename not matched:  mimetype
1291299938.667559 DEBUG root: STARTUP: Adding bundle '/home/olpc/Activities/Wikipedia.activity'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/jarabe/journal/palettes.py", line 125, in __start_activate_cb
  File "/usr/lib/python2.6/site-packages/jarabe/journal/misc.py", line 162, in resume
  File "/usr/lib/python2.6/site-packages/jarabe/model/bundleregistry.py", line 372, in install
    raise RegistrationException

btw the icon is shown badly in F13 (http://wiki.sugarlabs.org/go/Activity_Team/Compatibility_Tips) I attach a corrected icon

Changed 3 years ago by godiard

Changed 3 years ago by erikos

Martin, the archive of http://dev.laptop.org/~martin/wikipedia_es/ seem to be corrupted. Can not be unzipped. I have added the english version to the activity wiki page, so it can be tested in http://build.laptop.org/10.1.3/xo-1.5/os356/ .

After installing it here on 355 I could not run the first launch successfully. The second run did work. And yes - loading time has improved a lot! Congrats!

Changed 3 years ago by martin.langhoff

Thanks for the feedback -- seen side-by side, I also see some templates haven't expanded correctly.

Working on it...

Changed 3 years ago by martin.langhoff



  • Sort out some of the language mismatch issues
  • Include the new icon from Gonzalo (which does generate some harmless warnings)
  • Install and start at first go -- but you do have to revert a recent sugar patch for both languages to co-exist nicely.

sha1sum says

1fc64f1840dce9592f66c1f5fa0fdf5ea56cbcd6  WikipediaEN-22.xo aa62bf140eecd5fbf657fb7e5e8afe6cd386b318  Wikipedia-22.xo

Changed 3 years ago by erikos

  • next_action changed from add to build to test in build

Changed 3 years ago by greenfeld

  • status changed from new to closed
  • next_action changed from test in build to no action
  • resolution set to fixed

I compared the WikipediaEN-23 Activity in os360b and compared to the same activity running in 10.1.2. The newer version seemed to be at least twice as fast when loading pages without a connection to the Internet.

Changed 3 years ago by sridhar

  • cc sridhar added
Note: See TracTickets for help on using tickets.