Closed Bug 1450736 Opened 8 years ago Closed 6 years ago

library-pocket-animation.svg uses a lot of memory

Categories

(Firefox :: Pocket, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: bkelly, Unassigned)

Details

(Whiteboard: [MemShrink:P2])

I've started using pocket a bit recently and noticed something strange in about:memory. This single svg image is using 10+ MB in the parent process: │ │ │ ├──10.87 MB (04.64%) -- image(1078x54, chrome://pocket-shared/skin/library-pocket-animation.svg) │ │ │ │ ├───9.88 MB (04.22%) -- locked │ │ │ │ │ ├──8.78 MB (03.75%) -- cannot_substitute │ │ │ │ │ │ ├──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff000000 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ │ ├──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff000001 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ │ ├──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff010002 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ │ ├──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff010102 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ │ ├──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff010103 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ │ ├──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff010104 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ │ ├──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff020105 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ │ └──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff020206 fillOpa=0.7 strokeOpa=1 ) ]) │ │ │ │ │ └──1.10 MB (00.47%) ++ surface(2395x120, svgContext:[ viewport=(1078x54) contextPaint=( fill=ff020207 fillOpa=0.7 strokeOpa=1 ) ]) Is this correct and reasonable? To compare, the entire content page for getpocket.com fits in less memory: 8.73 MB (06.33%) ++ top(https://getpocket.com/a/queue/, id=6442451344)
It has a lot of masks. Masks require rasterising a surface so they do tend to use memory.
But why does this have to stay locked in memory for all time after its used once? The memory report suggests is not eligible for our normal image cache purging.
The masks don't stay in memory. Paths are cached though.
Whiteboard: [MemShrink] → [MemShrink:P2]

This bug has been closed due to inactivity and/or the potential for this bug to no longer be an issue with the new Discovery Stream-powered New Tab experience, and improvements to Pocket’s integration with Firefox.

Please help us triage by reopening if this issue still persists and should be addressed.

Thanks!

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