W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] RFC: Alternatives to storage mutex for cookies and localStorage

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 8 Sep 2009 20:52:14 +1200
Message-ID: <11e306600909080152v4f80995esfd29c21b0e4e4afa@mail.gmail.com>
On Tue, Sep 8, 2009 at 8:45 PM, Jeremy Orlow <jorlow at chromium.org> wrote:

> You'd have to implement it via a mutex.  An optimized implementation could
> wait until the first operation that can't be un-done before acquiring it,
> and do everything optimistically until then.  This is the same situation as
> WebDatabase if I understand it correctly.
>

AFAIK WebDatabase transactions can't have side effects outside the database,
so they can be implemented optimistically with automatic retries so aborts
aren't exposed to the developer.

If localStorage transactions are made to be just syntax around a mutex then
I'm not sure we've gained much for the compatibility break.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090908/0edac10b/attachment-0001.htm>
Received on Tuesday, 8 September 2009 01:52:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC