Opened 7 years ago

Closed 6 years ago

Last modified 20 months ago

#10147 closed defect (fixed)

XO 1.5 Wikipedia-EN slow to open Links

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


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.

Attachments (1)

activity-wikipedia.svg (4.4 KB) - added by godiard 6 years ago.

Download all attachments as: .zip

Change History (17)

comment:1 Changed 7 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.

comment:2 Changed 7 years ago by reuben

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

comment:3 Changed 7 years ago by godiard

  • Cc godiard added

comment:4 Changed 6 years ago by martin.langhoff

  • Cc tabitha added
  • Milestone changed from 1.5-software-later to 10.1.3
  • Owner changed from cjb to martin.langhoff

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 and

comment:5 Changed 6 years ago by martin.langhoff

  • Action Needed changed from never set to add to build

comment:6 Changed 6 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.

comment:7 Changed 6 years ago by martin.langhoff

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

comment:8 Changed 6 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.

comment:9 Changed 6 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/  
  inflating: /home/olpc/Activities/Wikipedia.activity/activity/activity-wikipedia.svg  
  inflating: /home/olpc/Activities/Wikipedia.activity/  
  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/", line 125, in __start_activate_cb
  File "/usr/lib/python2.6/site-packages/jarabe/journal/", line 162, in resume
  File "/usr/lib/python2.6/site-packages/jarabe/model/", line 372, in install
    raise RegistrationException

btw the icon is shown badly in F13 ( I attach a corrected icon

Changed 6 years ago by godiard

comment:10 Changed 6 years ago by erikos

Martin, the archive of 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 .

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!

comment:11 Changed 6 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...

comment:12 Changed 6 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

comment:13 Changed 6 years ago by erikos

  • Action Needed changed from add to build to test in build

comment:14 Changed 6 years ago by greenfeld

  • Action Needed changed from test in build to no action
  • Resolution set to fixed
  • Status changed from new to closed

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.

comment:15 Changed 6 years ago by sridhar

  • Cc sridhar added

comment:16 Changed 20 months ago by Quozl

  • Milestone 10.1.3 deleted

Milestone 10.1.3 deleted

Note: See TracTickets for help on using tickets.