WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140123
REGRESSION (
r177876
): 35% regression in Parser/html5-full-render
https://bugs.webkit.org/show_bug.cgi?id=140123
Summary
REGRESSION (r177876): 35% regression in Parser/html5-full-render
Antti Koivisto
Reported
2015-01-06 05:20:11 PST
https://perf.webkit.org/#mode=charts&chartList=%5B%5B%22mac-mavericks%22%2C%22Parser%2Fhtml5-full-render%3ATime%22%5D%5D
Attachments
patch
(4.75 KB, patch)
2015-01-06 05:28 PST
,
Antti Koivisto
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2015-01-06 05:28:14 PST
Created
attachment 244053
[details]
patch
Darin Adler
Comment 2
2015-01-06 10:45:11 PST
Comment on
attachment 244053
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=244053&action=review
> Source/WebCore/platform/graphics/SimpleFontData.cpp:443 > RefPtr<SimpleFontData> SimpleFontData::systemFallbackFontDataForCharacter(UChar32 c, const FontDescription& description, bool isForPlatformFont) const
Would be nice to name it "character" instead of "c".
> Source/WebCore/platform/graphics/SimpleFontData.cpp:455 > + if (c <= 0xFFFF) {
I think we should use U_IS_BMP here.
> Source/WebCore/platform/graphics/SimpleFontData.cpp:480 > + Vector<std::pair<UChar32, unsigned>> toRemove;
Inline capacity here, maybe?
> Source/WebCore/platform/graphics/SimpleFontData.cpp:484 > + for (auto& entry : characterMap) { > + if (entry.value == this) > + toRemove.append(entry.key); > + }
Should we have a map in the reverse direction to avoid this iteration?
Antti Koivisto
Comment 3
2015-01-06 11:38:37 PST
https://trac.webkit.org/r177979
Antti Koivisto
Comment 4
2015-01-06 11:42:31 PST
> Should we have a map in the reverse direction to avoid this iteration?
I suspect it is fine as-is. The GlyphPageTree code did a comparable crawl and I don't think we ever had problems with it.
Antti Koivisto
Comment 5
2015-01-06 12:07:35 PST
...and
https://trac.webkit.org/r177984
Antti Koivisto
Comment 6
2015-01-07 01:43:39 PST
The bot says performance is back where it was.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug