On Wed, Oct 27, 2010 at 12:04 AM, Boris Zbarsky <bzbar...@mit.edu> wrote:
> On 10/27/10 2:28 AM, Darin Fisher wrote: > >> I think it's about performance as well as implementor convenience. If >> the implementor knows up front that the data should be stored as a Blob, >> then the implementor can write the data to disk without having to waste >> memory. >> > > I have no problem with hinting to the implementor that the result is > expected to be used as a Blob so they can optimistically store it to disk. > My problem is with then making it impossible to get it as a string if > needed later (which would just involve reading the data from disk into > memory). > > -Boris > Yes, but doing so is inefficient since the API requires the data to be in memory synchronously. We don't want to block the UI thread on disk IO. -Darin