Closed Bug 1150344 Opened 9 years ago Closed 9 years ago

Fix FxA storage to not require re-reading disk on every request.

Categories

(Firefox :: Firefox Accounts, defect, P1)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1157529

People

(Reporter: markh, Unassigned)

References

Details

Via bug 1139743. getSignedInUserData never caches the user data in memory due to some of the data being locked behind the master-password - we re-read on each request just in-case the MP is now unlocked.

The main issue is really that the AccountState object doesn't know what data is stored where.  Off the top of my head, a solution might be:

* The Storage class grows new methods to separate the reading of "always available" data from the "possibly locked" data.

* The AccountState object then is responsible for calling both of these, and thus can become aware of what bits came from where, and cache them appropriate (eg, it should be able to immediately cache the "always available" data, and then cache the "possibly locked" data once we are able to get it.

* AccountState then returns the merged data with the callers being unaware of the change.

That bug also has many comments for how we can better structure the tests (eg, around bug 1139743 comment 48)
Blocks: 1127540
Blocks: 1166935
this is a blocker - setting to P1
Priority: -- → P1
QA Contact: pdehaan
:markh, do any of the patches we're working on together make any part of this better?
Flags: needinfo?(markh)
No longer blocks: 1127540
(In reply to Chris Karlof [:ckarlof] from comment #2)
> :markh, do any of the patches we're working on together make any part of
> this better?

Yeah, the storage patch fixes this as a side-effect.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(markh)
Resolution: --- → DUPLICATE
Product: Core → Firefox
You need to log in before you can comment on or make changes to this bug.