Closed Bug 321189 Opened 20 years ago Closed 7 years ago

svg:use elements kill performance on Linux

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jason, Unassigned)

Details

(Keywords: perf, Whiteboard: [external-report])

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Adding svg:use elements (either dynamically or statically) to an SVG file causes Firefox to become sluggish on Linux. This problem is not seen on Windows. Reproducible: Always Steps to Reproduce: 1. Open up slow.xhtml (attached). 2. Wave your mouse pointer over the top row of squares. Notice how slow the colors change. 3. Open up fast.xhtml (attached) to see how it should behave. Actual Results: The top row of squares in slow.xhtml can barely keep with normal mouse movements. Expected Results: I would expect viewing slow.xhtml to behave the same as fast.xhtml (just like it does on Windows).
After some more experiments, I figured out that the svg:use elements were not the problem. The problem was the svg:symbol elements because they, when "instanced" with a svg:use element, create a new viewport. I was able to replicate the problem by replacing all of the svg:use elements with nested svg:svg elements. The problem is fixed by adding the appropriate width and height attributes to the svg:use or svg:svg elements. When omitted, they both default to 100%. I think this should still be considered a bug since the problem doesn't exhibit itself on Windows but does on Linux but it's not the major bug I initially thought since there is an easy workaround.
Severity: major → normal
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060318 Firefox/1.6a1 ID:0000000000 Confirmed.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Tested in both Windows and Linux. Seems fixed in both Firefox 2 and 3. In Firefox 2 there's a slight processing increase while moving the mouse over the top row quickly; In Firefox 3 no CPU increase is noticed at all. Versions: Firefox 2 (Windows) - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13 Firefox 3 (Windows) - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008040805 Minefield/3.0pre Firefox 2 (Linux) - Mozilla/5.0 (X11; U; Linux i686; pt-PT; rv:1.8.1.13) Gecko/20080325 Ubuntu/7.10 (gutsy) Firefox/2.0.0.13 Firefox3 (Linux) - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008040804 Minefield/3.0pre
Assignee: general → nobody
QA Contact: ian → general
Keywords: perf
Whiteboard: [external-report]

Assuming OK now, use has been reimplemented using shadow trees.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: