Bug 238096

Summary: Vector move constructor and move assignment operator are suboptimal when the vector has an inline buffer
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web Template FrameworkAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cmarcelo, darin, ews-watchlist, ggaren, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=237988
Attachments:
Description Flags
WIP Patch
none
WIP Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Chris Dumez
Reported 2022-03-18 14:16:57 PDT
The Vector move constructor and move assignment operator are suboptimal when the vector has an inline buffer, because it relies on Vector::swap().
Attachments
WIP Patch (10.84 KB, patch)
2022-03-18 14:18 PDT, Chris Dumez
no flags
WIP Patch (10.93 KB, patch)
2022-03-18 14:29 PDT, Chris Dumez
no flags
Patch (14.80 KB, patch)
2022-03-18 16:26 PDT, Chris Dumez
no flags
Patch (14.63 KB, patch)
2022-03-18 16:42 PDT, Chris Dumez
no flags
Patch (14.76 KB, patch)
2022-03-18 18:17 PDT, Chris Dumez
no flags
Patch (14.81 KB, patch)
2022-03-18 19:32 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2022-03-18 14:18:24 PDT
Created attachment 455133 [details] WIP Patch Needs more testing and ASAN support.
Chris Dumez
Comment 2 2022-03-18 14:29:55 PDT
Created attachment 455135 [details] WIP Patch
Chris Dumez
Comment 3 2022-03-18 16:26:19 PDT
Chris Dumez
Comment 4 2022-03-18 16:42:59 PDT
Chris Dumez
Comment 5 2022-03-18 18:17:52 PDT
Chris Dumez
Comment 6 2022-03-18 19:32:45 PDT
Chris Dumez
Comment 7 2022-03-19 13:26:20 PDT
Small 0.4% progression on Speedometer on MacBook Air 10,1 (Apple Silicon) confirmed by A/B bots.
EWS
Comment 8 2022-03-19 21:12:39 PDT
Committed r291540 (248646@main): <https://commits.webkit.org/248646@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455158 [details].
Radar WebKit Bug Importer
Comment 9 2022-03-19 21:13:16 PDT
Note You need to log in before you can comment on or make changes to this bug.