New issue
Advanced search Search tips

Issue 664114 link

Starred by 8 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Nice-to-haves-for-Project-V


Sign in to add a comment

Extremely Slow Performance for SVG Text Scaling

Reported by hust...@gmail.com, Nov 10 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36

Steps to reproduce the problem:
1.  Visit: https://uzfin.com/heatmap (Press shift+f+c if you can't see the content)
2.  Click any rectangle to zoom it.

What is the expected behavior?
It should be speedy to zoom the rectangles with the texts on it, Just as IE10+/Edge/Safari/Firefox does.

What went wrong?
However, It's quite slow due to Text Scalings, and if I set the font-size of the texts just the same as before, It would be much faster.

Did this work before? N/A 

Chrome version: 54.0.2840.98  Channel: stable
OS Version: OS X 10.12.1
Flash Version: Shockwave Flash 23.0 r0

 

Comment 1 by f...@opera.com, Nov 10 2016

Components: -Blink Blink>SVG
Labels: -OS-Mac
Status: Available (was: Unconfirmed)
Thanks for filing!

I verified that there is some pretty heavy layouts going on (up to 500ms when randomly clicking around.) The style-recalcs looked pretty heavy too though. Need to try and get a look in a profiler.

Comment 2 by f...@opera.com, Nov 10 2016

Cc: drott@chromium.org
Looks like we're spending a lot of time in FontPlatformData::hasSpaceInLigaturesOrKerning (presumably because we have two sizes involved, and the size and scale changes?)

Short-circuiting that function by returning 'false' directly, seems to give slightly better layout times (on average, some fairly high peaks.)

Any chance we could that less (i.e is that GPOS/GSUB lookup size-invariant?)

Comment 3 by drott@chromium.org, Nov 11 2016

Cc: kojii@chromium.org e...@chromium.org behdad@chromium.org
We could probably cache that information in the font, no need to look it up multiple times in the font blob.
Issue 781344 is possibly related to this.
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 12

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink>SVG Blink>Fonts
Status: WontFix (was: Untriaged)
Site doesn't respond.

Sign in to add a comment