Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1496)

Issue 57650043: Moving the cache to local storage.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by pajamallama
Modified:
10 years, 1 month ago
Reviewers:
tapted, patrick.laub
Base URL:
https://github.com/tapted/bleeding_edge.git@master
Visibility:
Public.

Description

Moving the cache to local storage. Currently the system cache is created inside the project directory in the 'cache' subdirectory. This is pointless, as it should be stored in a global location which every project would be able to access. This patch adds a 'window.requestFileSystem' call to be able to grab a cache directory. Though running this results in a DOMError that I don't know how to deal with right now.

Patch Set 1 #

Total comments: 15

Patch Set 2 : Rebasing #

Patch Set 3 : Fixing nits #

Patch Set 4 : Actually asked for some storage quota.. #

Patch Set 5 : Rebase #

Patch Set 6 : More of system cache working. #

Patch Set 7 : FINALLY WORKING #

Patch Set 8 : (Minor) Rebase & cleanup of extra log functions & + some doc #

Total comments: 10

Patch Set 9 : Fixing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -349 lines) Patch
M dart/sdk/lib/_internal/pub/lib/src/app/pubchrome.dart View 1 2 3 4 5 6 3 chunks +10 lines, -9 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart View 1 2 3 4 5 6 7 2 chunks +3 lines, -7 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/io.dart View 1 2 3 4 5 6 7 8 9 chunks +121 lines, -69 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/log.dart View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/path_rep.dart View 1 2 3 4 5 6 1 chunk +17 lines, -7 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/pubspec.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/source.dart View 1 2 3 chunks +24 lines, -12 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/source/git.dart View 1 2 3 4 5 6 2 chunks +6 lines, -8 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart View 1 2 3 4 5 6 3 chunks +240 lines, -221 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/wrap/system_cache_wrap.dart View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/tavern.dart View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M dart/sdk/lib/_internal/pub/manifest.json View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15
pajamallama
Not working yet, strange bug, very confused.
10 years, 3 months ago (2014-01-28 05:55:01 UTC) #1
tapted
I patched it in and tried it, but didn't see the bug. What's happening? https://codereview.appspot.com/57650043/diff/1/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart ...
10 years, 3 months ago (2014-01-29 02:52:02 UTC) #2
tapted
https://codereview.appspot.com/57650043/diff/1/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart File dart/sdk/lib/_internal/pub/lib/src/path_rep.dart (right): https://codereview.appspot.com/57650043/diff/1/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart#newcode25 dart/sdk/lib/_internal/pub/lib/src/path_rep.dart:25: String get name => (inCache ? "cache:" : "") ...
10 years, 3 months ago (2014-01-29 02:56:07 UTC) #3
pajamallama
Fixed nits.. I'll look at that bug again. https://codereview.appspot.com/57650043/diff/1/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart File dart/sdk/lib/_internal/pub/lib/src/path_rep.dart (right): https://codereview.appspot.com/57650043/diff/1/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart#newcode8 dart/sdk/lib/_internal/pub/lib/src/path_rep.dart:8: bool ...
10 years, 3 months ago (2014-01-29 05:42:57 UTC) #4
pajamallama
Still not working :( Now the cache is located inside the persistent storage, and writing ...
10 years, 3 months ago (2014-01-30 04:56:53 UTC) #5
tapted
On 2014/01/30 04:56:53, pajamallama wrote: > Still not working :( > > Now the cache ...
10 years, 3 months ago (2014-01-30 07:01:46 UTC) #6
pajamallama
IT WORKS!!!!!!!!!!!!!!!!!!!!!
10 years, 2 months ago (2014-02-05 07:22:05 UTC) #7
pajamallama
Okay, I may have submitted the previous patch too early, in a fit of celebration. ...
10 years, 2 months ago (2014-02-05 23:59:41 UTC) #8
tapted
having a look now. It's a big delta - can you explain/highlight what's actually changing ...
10 years, 2 months ago (2014-02-06 02:05:14 UTC) #9
tapted
I'm really impressed you got this working. Looking more closely though, I think io_wrap has ...
10 years, 2 months ago (2014-02-06 02:41:30 UTC) #10
pajamallama
Will work on the PathRep changes next. https://codereview.appspot.com/57650043/diff/1/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart File dart/sdk/lib/_internal/pub/lib/src/path_rep.dart (right): https://codereview.appspot.com/57650043/diff/1/dart/sdk/lib/_internal/pub/lib/src/path_rep.dart#newcode8 dart/sdk/lib/_internal/pub/lib/src/path_rep.dart:8: bool inCache; ...
10 years, 2 months ago (2014-02-06 03:48:12 UTC) #11
patrick.laub
I think I've narrowed down the problem with this quota business. This code with the ...
10 years, 1 month ago (2014-03-11 13:24:58 UTC) #12
tapted
On 2014/03/11 13:24:58, patrick.laub wrote: > I think I've narrowed down the problem with this ...
10 years, 1 month ago (2014-03-11 23:58:31 UTC) #13
patrick.laub
On 2014/03/11 23:58:31, tapted wrote: > On 2014/03/11 13:24:58, patrick.laub wrote: > > I think ...
10 years, 1 month ago (2014-03-12 00:02:10 UTC) #14
patrick.laub
10 years, 1 month ago (2014-03-12 00:02:10 UTC) #15
On 2014/03/11 23:58:31, tapted wrote:
> On 2014/03/11 13:24:58, patrick.laub wrote:
> > I think I've narrowed down the problem with this quota business. This code
> with
> > the latest rebase works in Dartium, but throws "Failed to execute
> 'requestQuota'
> > on 'DeprecatedStorageQuota'" in JavaScript.
> > 
> > My guess is that the Dart2JS compiler should be using the new (?) promises
> Quota
> > API http://www.w3.org/TR/2013/WD-quota-api-20131105/#temporary-vs-persistent

> > (implemented here:
> >
>
https://chromium.googlesource.com/chromium/blink/+/8d78e1968ca65489603c77c03d...
> > ) but it isn't.
> > 
> > P.S That CL says it put this API behind a flag but I can't find any flag
about
> > quotas (searching for 'Quota' in http://chromestatus.com says the Quota API
> has been
> > "enabled by default" since chrome 14. That seems way too old?).
> 
> Not sure if this will help, but does updating to the Dart 1.2 SDK affect
things
> at all?

Na, I tested on 1.2 unfortunately. I'm thinking that I'll pull out the IO
simplifications
from this patch and worry about the persistent storage thing by itself.
and treat the quota issue separately.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b