Closed Bug 1032987 Opened 10 years ago Closed 7 years ago

Slow session restore with many tabs

Categories

(Firefox :: Session Restore, defect)

30 Branch
x86_64
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1025924

People

(Reporter: aenosedney, Unassigned)

Details

(Keywords: perf)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140605174243

Steps to reproduce:

Have Firefox with lots of tabs open (200+), close, and re-open.


Actual results:

On both cold and warm start (restart), Firefox takes a long time to load. The entire browser remains frozen and unusable for over 15 seconds. This slowdown seems to be directly related to the number of tabs open. Running Windows and Firefox on a 256GB Vertex 4 SSD


Expected results:

I have my tabs set to load only when selected. This should in theory mean that you can have over ten thousand tabs and Firefox should start up just as fast as if it had 1 tab. Instead it seems to be allocating a lot of time/resources to.. do nothing. It isn't actually loading the background tabs, so what is it doing then? Load the browser first, then the current tab, free up resources so that you can access the nearest 4 tabs on either side of current tab and open a new tab if desired. Finally, progressively load the rest of the tab bar in the background while the browser runs smoothly.
Does it look like bug 1025924 comment 0?
Component: Untriaged → Session Restore
Flags: needinfo?(aenosedney)
Very similar. I notice quadcore CPU flatline to about 25% during this time, indicating it's maxing the CPU

However it doesn't show the outline for all tabs, though this may be due to me using tree style tab. Screenshot:

http://a.pomf.se/eyiijr.png
Flags: needinfo?(aenosedney)
Can you disable Tree Style Tab and restart Firefox to see if it does show the outline?  Then the bug can be resolved duplicate.
Flags: needinfo?(aenosedney)
Tested with Tree Style Tab disabled. It seems to load progressively in 3 stages now:

1. Shows 1 blank tab
2. Shows lots of blank tabs
3. Shows lots of tabs with the titles but nothing loads yet

Then finally loads. It could be a duplicate but I'm not 100% sure.
Flags: needinfo?(aenosedney)
You reported this with version 30. Did you have the same problem with version 29?
Flags: needinfo?(aenosedney)
Keywords: perf
Summary: Slow startup with many tabs → Slow session restore with many tabs
I cannot remember. However it's at version 31 now and the problem persists.
Flags: needinfo?(aenosedney)
Seems like a duplicate of bug 1025924 .

I can confirm that I after 2 years I still see this bug with both  Nightly and Firefox 48 , even when add-ons are disabled.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
No longer blocks: ss-perf
You need to log in before you can comment on or make changes to this bug.