Open Bug 1550382 Opened 1 year ago Updated 1 year ago

Reduce nursery size when JS or GC is inactive

Categories

(Core :: JavaScript: GC, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: pbone, Unassigned)

References

(Blocks 1 open bug)

Details

We don't yet have either process-per-tab or other clues from Firefox/the embedding about whether the tab is in the foreground or background. But we can use timing information, Bug 1532838 increased the minimum nursery size to improve performance. We could do this only when minor GCs are fairly frequent. When they're infrequent it'd be quite easy to reduce this a lot, that's what I propose to do here.

Later when we have process-per-tab and know that we're in the background this feature will still be useful for foreground but not-very-busy tabs.

There's no point implementing this until after Bug 1506733 because it's not making the not-used memory available to other processes yet.

Depends on: 1562550
You need to log in before you can comment on or make changes to this bug.