[Webkit-unassigned] [Bug 112310] New: Add a mode to ResourceLoader that takes SharedBuffers instead of raw pointers and lengths
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 13 19:08:23 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=112310
Summary: Add a mode to ResourceLoader that takes SharedBuffers
instead of raw pointers and lengths
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: Page Loading
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: beidson at apple.com
Add a mode to ResourceLoader that takes SharedBuffers instead of raw pointers and lengths.
For platforms whose ResourceHandle::didReceiveData implementation gets some sort of buffer object (Mac, CF, qt, soup) this is an optimization that can be used today to avoid at least one data copy in many cases.
For other platforms whose ResourceHandle::didReceiveData implementations get raw pointers and lengths themselves, it is possible that they have options to rewrite their platform layers to use some sort of shared buffer object or introduce special modes to SharedBuffer that could help encapsulate the same thing.
Some day we might be able to get away from the current didReceiveData(char*, int) model entirely and work solely with SharedBuffers... but we can't do that today without introducing a "copy into a SharedBuffer" step to those other platforms.
--
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