W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: [FileAPI] createObjectURL isReusable proposal

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 15 Dec 2011 01:10:49 +0000 (UTC)
To: Jonas Sicking <jonas@sicking.cc>
cc: Glenn Maynard <glenn@zewt.org>, Adrian Bateman <adrianba@microsoft.com>, "Web Applications Working Group WG (public-webapps@w3.org)" <public-webapps@w3.org>, Feras Moussa <ferasm@microsoft.com>
Message-ID: <Pine.LNX.4.64.1112150107170.26122@ps20323.dreamhostps.com>
On Wed, 14 Dec 2011, Jonas Sicking wrote:
> On Wed, Dec 14, 2011 at 4:55 PM, Ian Hickson <ian@hixie.ch> wrote:
> > On Wed, 14 Dec 2011, Glenn Maynard wrote:
> >>
> >> The problem isn't the cost of the URL mapping, it's the cost of 
> >> keeping the backing Blob around.  If you drag around Google Maps for 
> >> a long time, and it used object URLs to load its tile images, it'd be 
> >> very bad if the browser had to keep every tile graphic around for the 
> >> lifetime of the page.
> >
> > Browsers do keep them around for the lifetime of the page, in their 
> > HTTP cache.
> This isn't true at least for Firefox. We allow resources to be kicked 
> out of the HTTP cache even if the page that originally caused the 
> resource to be loaded is still being used.

I guess. For pages that are dealing with bazillions of images then it 
makes sense to have the page discard the blobs once they're no longer in 
use. But I am very skeptical about an API that makes that happen 
automatically, because it really makes the API as a whole quite brittle.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 15 December 2011 01:11:13 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:37 UTC