Bug 77012

Summary: Screen freezing for short time while scrolling.
Product: WebKit Reporter: JungJik Lee <jungjik.lee>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
proposal patch msaboff: review-

Description JungJik Lee 2012-01-25 08:37:24 PST
I found a short time screen freezing while scrolling in GTK and EFL port.
And it was because of the FontCachePurgePreventer.
When the screen is updated, almost every time the browser calls FontCachePurgePreventer.
FontCachePurgePreventer tries to purge the inactive fallback fonts.
It's ok in pages written in alphabet (because it is under font cache limits),
But it becomes overhead in pages written in CJK or none-alphabet.
Actually it takes quite significant time to look inactive fonts up in hash table.
So I simply suggest that FontCachePurgePreventer remains only in (FrameView::reset function).
I will file a patch soon. Any advice will be welcomed.
Comment 1 JungJik Lee 2012-02-12 09:36:02 PST
Created attachment 126677 [details]
proposal patch
Comment 2 Michael Saboff 2012-02-13 10:20:08 PST
Comment on attachment 126677 [details]
proposal patch

This timer is in the wrong direction.  If you think you need more inactive fonts, I suggest that you add platform specific values for cMaxInactiveFontData and cTargetInactiveFontData in WebCore/platform/graphics/FontCache.cpp near lines 255-261.  Adopting the CHROMIUM values may be sufficient.
Comment 3 JungJik Lee 2012-02-26 00:29:07 PST
(In reply to comment #2)
> (From update of attachment 126677 [details])
> This timer is in the wrong direction.  If you think you need more inactive fonts, I suggest that you add platform specific values for cMaxInactiveFontData and cTargetInactiveFontData in WebCore/platform/graphics/FontCache.cpp near lines 255-261.  Adopting the CHROMIUM values may be sufficient.

I've tested with CHROMIUM values, it occurs less then before. However it still show the similar symptom. So I am investigating freetype font on EFL/GTK.
It happens in these site, http://www.sina.com.cn or http://www.daum.net.
Anyway Thank you for attention.