fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Investigate useage of Shared Pref on cold start

Open Malclir opened this issue 6 years ago • 4 comments

Shared Pref could preferably be done on an IO Dispatcher instead of on the MT. Have to investigate whether or not its worthwhile / low-risk to move all of those calls (if any)

Acceptance Criteria (how do I know when I’m done?)

Find all the useage of SharedPref on cold start.

┆Issue is synchronized with this Jira Task

Malclir avatar Jan 02 '20 18:01 Malclir

Total found: ~136ms - 160ms on G5+ on Cold Start (new install or not). This number counts in the push setup which might change in the near future. (this number is without the Glean Migration code. With the later is ~190-250ms).

Keep in mind, a single Shared Pref call in profiles aren't expensive (lowest being 5ms highest being ~70ms) but they do add up, especially if different shared pref files are used. A good reference / explanation on how they are implemented

Malclir avatar Jan 06 '20 19:01 Malclir

@MarcLeclair Should we file a new bug for the remaining action items? What are the remaining action items? I suspect one is 1) investigate if merging sharedprefs into a single branch improves performance.

Can this issue be unassigned?

mcomella avatar Jan 06 '20 21:01 mcomella

This issue can be unassigned I think. The only thing now is that with experiments staying, the number above might change a tiny bit 😄

Or it could be moved to done since this issue is ,technically, done.

Malclir avatar Jan 10 '20 23:01 Malclir

Closing: we're addressing startup holistically.

mcomella avatar Aug 03 '20 18:08 mcomella