RESOLVED FIXED 200034
StringBuilder::append(makeString(...)) is inefficient
https://bugs.webkit.org/show_bug.cgi?id=200034
Summary StringBuilder::append(makeString(...)) is inefficient
Sam Weinig
Reported 2019-07-23 09:30:56 PDT
Now that we have StringBuilder::flexibleAppend(), we should replace the inefficient use of StringBuilder::append(makeString(...)) to avoid the unneeded string allocation.
Attachments
WIP (82.37 KB, patch)
2019-07-23 09:34 PDT, Sam Weinig
no flags
Patch (88.56 KB, patch)
2019-07-28 11:14 PDT, Sam Weinig
no flags
Patch (89.47 KB, patch)
2019-07-28 12:36 PDT, Sam Weinig
no flags
Patch (89.46 KB, patch)
2019-07-29 12:34 PDT, Sam Weinig
no flags
Sam Weinig
Comment 1 2019-07-23 09:34:24 PDT
Sam Weinig
Comment 2 2019-07-28 11:14:03 PDT
Sam Weinig
Comment 3 2019-07-28 12:36:54 PDT
Saam Barati
Comment 4 2019-07-28 17:28:52 PDT
Comment on attachment 375044 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375044&action=review Nice > Source/WebCore/ChangeLog:14 > + A lot more can be done to improve the efficiency of StringBuilder use in the WHLSL code including: Good tips. I might look into doing some of these. Metal codegen is one of the most expensive phases in WHLSL codegen.
Sam Weinig
Comment 5 2019-07-29 12:34:27 PDT
WebKit Commit Bot
Comment 6 2019-07-29 13:12:32 PDT
Comment on attachment 375091 [details] Patch Clearing flags on attachment: 375091 Committed r247917: <https://trac.webkit.org/changeset/247917>
WebKit Commit Bot
Comment 7 2019-07-29 13:12:33 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2019-07-29 13:13:17 PDT
Note You need to log in before you can comment on or make changes to this bug.