GNOME Bugzilla – Bug 657665
IANA service-names-port-numbers page takes several minutes to transform
Last modified: 2012-08-28 13:43:48 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
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.
Applied, upstream, thanks ! Daniel