Bug 77012 - Screen freezing for short time while scrolling.
Summary: Screen freezing for short time while scrolling.
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 08:37 PST by JungJik Lee
Modified: 2012-07-19 05:31 PDT (History)
0 users

See Also:


Attachments
proposal patch (3.06 KB, patch)
2012-02-12 09:36 PST, JungJik Lee
msaboff: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.