REOPENED 138049
Avoid unnecessary NSURLRequest copies in ResourceRequest::doUpdatePlatformRequest() / doUpdatePlatformHTTPBody()
https://bugs.webkit.org/show_bug.cgi?id=138049
Summary Avoid unnecessary NSURLRequest copies in ResourceRequest::doUpdatePlatformReq...
Chris Dumez
Reported 2014-10-24 11:06:00 PDT
Avoid unnecessary NSURLRequest copies in ResourceRequest::doUpdatePlatformRequest() / doUpdatePlatformHTTPBody(). It turns out that half the time, m_nsRequest is already mutable so it is unnecessary to call [NSURLRequest mutableCopy], we can just cast to an NSMutableURLRequest* and avoid copying.
Attachments
Patch (5.00 KB, patch)
2014-10-24 11:23 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2014-10-24 11:23:21 PDT
WebKit Commit Bot
Comment 2 2014-10-24 12:13:17 PDT
Comment on attachment 240418 [details] Patch Clearing flags on attachment: 240418 Committed r175171: <http://trac.webkit.org/changeset/175171>
WebKit Commit Bot
Comment 3 2014-10-24 12:13:21 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 4 2015-07-01 01:28:47 PDT
This got rolled out. Do we know what the problem was? Was it that the mutable NSURLRequest wasn't expected to be changed?
Chris Dumez
Comment 5 2015-07-01 09:26:22 PDT
(In reply to comment #4) > This got rolled out. Do we know what the problem was? Was it that the > mutable NSURLRequest wasn't expected to be changed? I haven't had time to investigate yet. My priority was to safely and quickly fix the crash at this point and a simple roll out seemed like the right thing to do. I'll take another look when I get some spare cycles.
Darin Adler
Comment 6 2015-07-01 09:26:48 PDT
Reopening since it was rolled out.
Note You need to log in before you can comment on or make changes to this bug.