WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
243521
Iterate non-contiguous NSData regions instead of copying to contiguous buffer
https://bugs.webkit.org/show_bug.cgi?id=243521
Summary
Iterate non-contiguous NSData regions instead of copying to contiguous buffer
Alex Christensen
Reported
2022-08-03 17:24:37 PDT
CFNetwork gives us NSData which we then copy to SharedMemory, but we do so by calling NSData.data which copies the data to a newly allocated buffer in about 1/4-1/3 of the cases of my local browsing. Iterating using enumerateByteRangesUsingBlock instead removes this copy and allocation
Attachments
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2022-08-03 17:25:45 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/2999
Radar WebKit Bug Importer
Comment 2
2022-08-10 17:25:15 PDT
<
rdar://problem/98479750
>
EWS
Comment 3
2022-08-11 21:03:49 PDT
Committed
253363@main
(f6b396ad7232): <
https://commits.webkit.org/253363@main
> Reviewed commits have been landed. Closing PR #2999 and removing active labels.
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