Bug 238404 - Speed up Element::removedFromAncestor()
Summary: Speed up Element::removedFromAncestor()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-25 19:48 PDT by Chris Dumez
Modified: 2022-03-28 11:48 PDT (History)
7 users (show)

See Also:


Attachments
Patch (9.26 KB, patch)
2022-03-25 19:49 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2022-03-25 19:48:38 PDT
Speed up Element::removedFromAncestor() by inlining some of the functions it is calling.
Comment 1 Chris Dumez 2022-03-25 19:49:43 PDT
Created attachment 455816 [details]
Patch
Comment 2 Chris Dumez 2022-03-26 14:21:52 PDT
Comment on attachment 455816 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=455816&action=review

> Source/WebCore/ChangeLog:9
> +        This is a confirmed 1.5-2% progression on Speedometer on iMac 20,1.

Sadly, it seems perf-neutral on MacBook Air 10,1 (Apple Silicon). A bit surprising given how much it seems to help on Intel but anyway...
Comment 3 Geoffrey Garen 2022-03-28 10:07:03 PDT
Comment on attachment 455816 [details]
Patch

r=me
Comment 4 EWS 2022-03-28 11:47:06 PDT
Committed r291981 (248940@main): <https://commits.webkit.org/248940@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 455816 [details].
Comment 5 Radar WebKit Bug Importer 2022-03-28 11:48:27 PDT
<rdar://problem/90936680>