RESOLVED FIXED 221769
Reduce unnecessary string copies in ParsedRequestRange and ParsedContentRange
https://bugs.webkit.org/show_bug.cgi?id=221769
Summary Reduce unnecessary string copies in ParsedRequestRange and ParsedContentRange
Alex Christensen
Reported 2021-02-11 12:11:39 PST
Reduce unnecessary string copies in ParsedRequestRange and ParsedContentRange
Attachments
Patch (10.13 KB, patch)
2021-02-11 12:12 PST, Alex Christensen
ews-feeder: commit-queue-
Patch (10.11 KB, patch)
2021-02-11 13:24 PST, Alex Christensen
ggaren: review+
ews-feeder: commit-queue-
Alex Christensen
Comment 1 2021-02-11 12:12:34 PST
Alex Christensen
Comment 2 2021-02-11 13:24:11 PST
Sam Weinig
Comment 3 2021-02-11 13:54:56 PST
If you want to be even more efficient, you can also consider adopting StringParsingBuffer + ParserUtilities.h, which avoids a bunch of the branches StringView has to do on each call by doing the branch up front. Just grep in WebCore for StringParsingBuffer to see some examples of it being used.
Alex Christensen
Comment 4 2021-02-11 14:20:04 PST
That's true, but I don't think there is much difference in this case because toInt64Strict and toUInt64Strict only have one check for 8-bit or 16-bit, then they call specialized parsers themselves.
Radar WebKit Bug Importer
Comment 5 2021-02-18 12:12:13 PST
Geoffrey Garen
Comment 6 2021-03-09 16:22:23 PST
Comment on attachment 420035 [details] Patch r=me
EWS
Comment 7 2021-03-09 16:37:21 PST
Tools/Scripts/svn-apply failed to apply attachment 420035 [details] to trunk. Please resolve the conflicts and upload a new patch.
Alex Christensen
Comment 8 2021-03-09 16:43:36 PST
Note You need to log in before you can comment on or make changes to this bug.