After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657665 - IANA service-names-port-numbers page takes several minutes to transform
IANA service-names-port-numbers page takes several minutes to transform
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-30 04:48 UTC by Alexey Proskuryakov
Modified: 2012-08-28 13:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
page source (359.40 KB, application/zip)
2011-08-30 04:48 UTC, Alexey Proskuryakov
  Details
Proposed fix (8.18 KB, patch)
2012-08-19 18:10 UTC, Nick Wellnhofer
none Details | Review

Description Alexey Proskuryakov 2011-08-30 04:48:24 UTC
Created attachment 195153 [details]
page source

The web page <http://www.iana.org/assignments/service-names-port-numbers/> takes ~5 minutes to load on my machine, during which time Safari pegs the CPU at 100%.

Almost all the time is spent in libxslt, and command line xsltproc behaves exactly the same.

Firefox does not exhibit this problem, opening the page in less than a minute.

$ xsltproc --version
Using libxml 20703, libxslt 10124 and libexslt 813
xsltproc was compiled against libxml 20703, libxslt 10124 and libexslt 813
libxslt 10124 was compiled against libxml 20703
libexslt 813 was compiled against libxml 20703
Comment 1 Nick Wellnhofer 2012-08-19 18:10:13 UTC
Created attachment 221751 [details] [review]
Proposed fix

This patch against xpath.c in libxml2 reduces the transformation time with xsltproc to 3.836 seconds from 2 minutes 56 seconds.
Comment 2 Daniel Veillard 2012-08-28 13:43:48 UTC
Applied, upstream,

 thanks !

Daniel