WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
158447
Begin separating NSURLRequest and CFURLRequest storage
https://bugs.webkit.org/show_bug.cgi?id=158447
Summary
Begin separating NSURLRequest and CFURLRequest storage
Alex Christensen
Reported
2016-06-06 16:21:35 PDT
Begin separating NSURLRequest and CFURLRequest storage
Attachments
Patch
(9.43 KB, patch)
2016-06-06 16:22 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(12.54 KB, patch)
2016-06-06 16:49 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(12.52 KB, patch)
2016-06-06 17:02 PDT
,
Alex Christensen
achristensen
: review-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2016-06-06 16:22:33 PDT
Created
attachment 280644
[details]
Patch
WebKit Commit Bot
Comment 2
2016-06-06 16:25:18 PDT
Attachment 280644
[details]
did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 3
2016-06-06 16:49:46 PDT
Created
attachment 280646
[details]
Patch
Alex Christensen
Comment 4
2016-06-06 17:02:49 PDT
Created
attachment 280650
[details]
Patch
Darin Adler
Comment 5
2016-06-06 18:31:37 PDT
Comment on
attachment 280650
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=280650&action=review
> Source/WebCore/platform/network/cocoa/ResourceRequestCocoa.mm:57 > + return [[[NSMutableURLRequest alloc] _initWithCFURLRequest:m_cfRequest.get()] autorelease];
Seems like this could be really inefficient if someone calls this function repeatedly. Allocating a new one every time.
> Source/WebCore/platform/network/cocoa/ResourceResponseCocoa.mm:115 > + return [NSURLResponse _responseWithCFURLResponse:m_cfResponse.get()];
Seems like this could be really inefficient if someone calls this function repeatedly. Allocating a new one every time.
Alex Christensen
Comment 6
2016-06-06 22:24:38 PDT
Comment on
attachment 280650
[details]
Patch You're right, but it's also memory inefficient to keep two copies of the same thing alive, one NSURLRespose and one CFURLResponse. I think it may be premature to clean up this code while we still build for iOS9. Once that's done, though, I want to clean up ResourceResponse and ResourceRequest.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug