WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
81198
Improve isInsertionPoint performance.
https://bugs.webkit.org/show_bug.cgi?id=81198
Summary
Improve isInsertionPoint performance.
Shinya Kawanaka
Reported
2012-03-15 01:39:22 PDT
From this discussion (
http://code.google.com/p/chromium/issues/detail?id=117020
), The refactoring for isInsertionPoint (
http://trac.webkit.org/changeset/110151/
) might regress the performance. So let's try to make isInsertionPoint() faster.
Attachments
Patch
(3.38 KB, patch)
2012-03-15 01:49 PDT
,
Shinya Kawanaka
morrita
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Shinya Kawanaka
Comment 1
2012-03-15 01:49:20 PDT
Created
attachment 132002
[details]
Patch
Ryosuke Niwa
Comment 2
2012-03-15 09:07:28 PDT
Comment on
attachment 132002
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132002&action=review
How hot is this function? Maybe we should add a new node flag to avoid virtual function calls altogether?
> Source/WebCore/ChangeLog:9 > + Reviewed by NOBODY (OOPS!).
This line should appear before the description.
Shinya Kawanaka
Comment 3
2012-03-15 19:39:48 PDT
(In reply to
comment #2
)
> (From update of
attachment 132002
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=132002&action=review
> > How hot is this function? Maybe we should add a new node flag to avoid virtual function calls altogether? > > > Source/WebCore/ChangeLog:9 > > + Reviewed by NOBODY (OOPS!). > > This line should appear before the description.
Before the regression, isContentElement (which is used instead of isInsertionPoint) is just a virtual function. However, isInsertionPoint is called for each element in NodeRenderingContext. I'm not sure we should add another flag for performance or just virtual function will do.
Hajime Morrita
Comment 4
2012-03-15 23:37:42 PDT
Comment on
attachment 132002
[details]
Patch mikelawther is working on another suspicious patches. This can be wrong. Maybe it fixes the problem. I hope we have some investigation using page cycler before having a blind change.
Shinya Kawanaka
Comment 5
2012-03-15 23:48:59 PDT
(In reply to
comment #4
)
> (From update of
attachment 132002
[details]
) > mikelawther is working on another suspicious patches. This can be wrong. Maybe it fixes the problem. > I hope we have some investigation using page cycler before having a blind change.
Yeah... I hope so.
Sam Weinig
Comment 6
2012-04-01 19:44:03 PDT
Has there been any performance testing for this done yet?
Ryosuke Niwa
Comment 7
2012-04-01 19:53:19 PDT
Comment on
attachment 132002
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132002&action=review
> Source/WebCore/dom/Node.h:219 > + virtual bool isInsertionPoint() const { return false; }
Who returns true?
Hajime Morrita
Comment 8
2012-04-16 19:21:12 PDT
Comment on
attachment 132002
[details]
Patch r- per Ryosuke and Sam's comment. We need benchmark summary on ChangeLog for example.
Shinya Kawanaka
Comment 9
2012-06-05 03:51:09 PDT
Let's make this INVALID, since we don't have any strong reason to make this faster. Please feel free to reopen if you need.
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