Closed Bug 1901830 Opened 2 years ago Closed 2 years ago

Speedup session store serialization by ~25x

Categories

(Firefox for Android :: Browser Engine, defect)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox127 --- wontfix
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

Attachments

(1 file)

When serializing the session store information we were spending the bulk
of the time doing charset conversion because the JsonWriter writes a
character at a time and charset conversion has a large fixed overhead.

When serializing the session store information we were spending the bulk
of the time doing charset conversion because the JsonWriter writes a
character at a time and charset conversion has a large fixed overhead.

Blocks: 1901594
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14a551dac67f Speedup session store serialization by ~25x r=android-reviewers,kaya
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Comment on attachment 9406726 [details]
Bug 1901830 - Speedup session store serialization by ~25x

Beta/Release Uplift Approval Request

  • User impact if declined: Saving session store can use up a significant amount of CPU time during tab switching. This is especially noticeable with sessions that are larger ~80+ tabs. During tab switch we have a lot of other important work to do so it's not a good time be wasting CPU.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's basically a one line fix that should have no functional differences. If it builds it's very likely to work.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9406726 - Flags: approval-mozilla-beta?

Comment on attachment 9406726 [details]
Bug 1901830 - Speedup session store serialization by ~25x

Approved for 128.0b4.

Attachment #9406726 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9406726 [details]
Bug 1901830 - Speedup session store serialization by ~25x

Beta/Release Uplift Approval Request

  • User impact if declined: Saving session store can use up a significant amount of CPU time during tab switching. This is especially noticeable with sessions that are larger ~80+ tabs. During tab switch we have a lot of other important work to do so it's not a good time be wasting CPU.

This isn't worth causing a dot release but if we decided to do one it would be nice to ride along.

  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's basically a one line fix that should have no functional differences. If it builds it's very likely to work. It's also baked in Nightly and Beta for a while.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9406726 - Flags: approval-mozilla-release?
Duplicate of this bug: 1901594

Comment on attachment 9406726 [details]
Bug 1901830 - Speedup session store serialization by ~25x

Rejecting release uplift request. Fx128 merges to release on Monday 2024-07-01.
We don't have any Fx127 dot release planned before then.

Attachment #9406726 - Flags: approval-mozilla-release? → approval-mozilla-release-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: