[Webkit-unassigned] [Bug 102306] New: For single element arrays use the pointer into the CFDataRef instead of copying data
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 14 17:40:00 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=102306
Summary: For single element arrays use the pointer into the
CFDataRef instead of copying data
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Platform
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: psolanki at apple.com
CC: ddkilzer at webkit.org
This is an optimization when USE(NETWORK_CFDATA_ARRAY_CALLBACK) is available. Generally, WebCore copies the data returned from CFNetwork into its own buffers once the resource is done loading. However, if the resource is cached, CFNetwork will return us a CFArrayRef with exactly 1 CFDataRef in it. In such a case, it might be beneficial to not copy the data and just use the byte pointer i.e. call CFDataGetBytePtr() and use that memory directly.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list