| Summary: | [Curl] Optimization; avoid reallocating string many times. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | peavo | ||||||
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | alex.christensen, bfulgham, commit-queue, galpeter | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
peavo
2014-09-10 06:47:07 PDT
Created attachment 237889 [details]
Patch
Comment on attachment 237889 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=237889&action=review > Source/WebCore/platform/network/curl/CookieJarCurl.cpp:42 > + token = WTF::move(strToken); Couldn't this be token=String(cookieStart, cookie - cookieStart) to avoid two lines and a move? Created attachment 237893 [details]
Patch
(In reply to comment #2) > (From update of attachment 237889 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=237889&action=review > > > Source/WebCore/platform/network/curl/CookieJarCurl.cpp:42 > > + token = WTF::move(strToken); > > Couldn't this be token=String(cookieStart, cookie - cookieStart) to avoid two lines and a move? Yes, thank you, updated patch :) Comment on attachment 237893 [details] Patch Clearing flags on attachment: 237893 Committed r173474: <http://trac.webkit.org/changeset/173474> All reviewed patches have been landed. Closing bug. |