Bug 243521
| Summary: | Iterate non-contiguous NSData regions instead of copying to contiguous buffer | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> |
| Component: | Page Loading | Assignee: | Alex Christensen <achristensen> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | beidson, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Alex Christensen
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
Pull request: https://github.com/WebKit/WebKit/pull/2999
Radar WebKit Bug Importer
<rdar://problem/98479750>
EWS
Committed 253363@main (f6b396ad7232): <https://commits.webkit.org/253363@main>
Reviewed commits have been landed. Closing PR #2999 and removing active labels.