New issue
Advanced search Search tips

Issue 741865 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocking:
issue 741029



Sign in to add a comment

cc/trees allocates too much when loading inline SVG

Project Member Reported by pdr@chromium.org, Jul 12 2017

Issue description

Investigating the memory of SVG images I found that a page with 1000 <svg><rect></svg> entries allocates ~700KB in cc/trees.

My testcase is here with 1000 <svg><rect></svg> entries: https://output.jsbin.com/bijoyaf/quiet

Using --enable-heap-profiling and about:tracing with memory-infra enabled, I found this page allocates 689KB (malloc) in cc/trees.
 
Labels: BugSource-Team PaintTeamTriaged-20170713

Comment 2 by pdr@chromium.org, Jul 20 2017

I found most of this memory is blamed on cc/trees because that's where the paint op buffer is created. This is primarily the display item list memory, and 700KB is reasonable.

I have a speculative patch up for not doing some compositing work when compositing is disabled: https://chromium-review.googlesource.com/c/580328.

I also found we run a timer for cursors in SVGImages. I'll look into disabling that.

Comment 3 by pdr@chromium.org, Jul 20 2017

Description: Show this description

Comment 4 by pdr@chromium.org, Jul 20 2017

Status: WontFix (was: Assigned)
I found the compositing update code has side effects and isn't easy to disable when accelerated compositing is not enabled.

Sign in to add a comment