Closed
Bug 121330
Opened 23 years ago
Closed 15 years ago
Large document with lots of markup slows Mozilla down to a crawl
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: hpa, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: perf)
Attachments
(1 file)
782.92 KB,
text/html
|
Details |
The indicated URL is 12 MB in size, mostly one big <pre> tag with embedded
<span> tags. It causes Mozilla to slow down to a crawl while rendering;
furthermore, not just the window rendering the data set in question is affected,
but all Mozilla windows, including News/Mail.
The same behaviour was observed when the <pre> tag was removed and formatting
was enforced with and <br> instead.
Reporter | ||
Comment 1•23 years ago
|
||
This is tested with Mozilla 0.9.6 on Linux/i386, RedHat 6.1.
Comment 2•23 years ago
|
||
On build 2002011604 on my Windows ME box with an 866 MHz PIII and 128 MiB
of RAM, I get a *slight* amount of slowdown until Mozilla starts to dig
into swap (Wintop reported over 120 MB allocated before I closed the tab).
Then it slows to a crawl when switching windows. But to Mozilla's credit,
it doesn't slow down any more than the other running apps (namely Explorer,
Cool Edit, and Outlook Express) while that page is loading.
Peter: i386? Who uses a 386 anymore? :-)
Reporter: How fast is your machine? How much memory? Is its hard disk
making the characteristic sounds of swapping?
Comment 3•23 years ago
|
||
likely a dup of other "large flat document" bugs. Will profile later tonight or
tomorrow.
Reporter | ||
Comment 4•23 years ago
|
||
i386 as in the i386 (32-bit PC) architecture. The machine is a dual PIII/800
with 1 GB RAM. No swapping is noticeable.
Comment 5•23 years ago
|
||
No noticeable slowdown on Win98 2002011703. I'm running an Athlon XP1600+ with
256MB RAM. Maybe this is platform specific
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
To layout. nothing immediately jumps at me here. ccing waterson who has
similar bugs on his plate already.
Assignee: asa → attinasi
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout
Ever confirmed: true
QA Contact: doronr → petersen
Updated•23 years ago
|
Target Milestone: --- → mozilla1.1
Comment 9•23 years ago
|
||
Even IE hangs on loading the above URL on WIN2K. Changing the OS to all and
priority to P2
OS: Linux → All
Priority: -- → P2
Updated•23 years ago
|
Priority: P2 → P3
Comment 11•21 years ago
|
||
.
Assignee: attinasi → other
Priority: P3 → --
QA Contact: amar → ian
Whiteboard: DUPEME
Target Milestone: Future → ---
Comment 12•21 years ago
|
||
Hmm... the url now points to a far smaller document... (I was going to retest
because the top culprits in that profile had gotten some nontrivial speedups).
Is there still a testcase for this bug?
Comment 13•21 years ago
|
||
No testcase, no useful way to reproduce, so marking worksforme. Please reopen
if there is a testcase....
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 14•21 years ago
|
||
Corrected URL and reopening
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 15•21 years ago
|
||
OK, loading that file I see the following:
Total wall-clock time to load from local disk (so network is not the limiting
factor; I copied the CSS locally too): 1 minute 45 seconds. For comparison,
lynx took about 30 seconds to display the same file.
Mozilla memory usage when done: 180 MB
Mozilla stays responsive throughout the load; I was opening new windows, typing
in URIs, etc as I was loading the file. It's not quite as quick as when there
is no load on the system at all, but it _is_ using nearly 100% of CPU (which
makes sense -- it's rendering a page).
A profile shows nothing untoward -- 6% of time is spent in RecoverFloats (see
bug 226737 and bug 86950). Time is spent in frame construction, parsing,
content model construction, reflow, in about the proportions you'd expect.
So what exactly is the problem? Being able to do a whole lot more work than
lynx in a comparable amount of time (factor of 4 is not too bad, considering)
and without being unresponsive at any point seems like about the best that we
can achieve...
Depends on: 86950
Comment 16•17 years ago
|
||
FF does better here than IE as far as I can tell. ANd FF doesn't seem long considering the size of the document. on vista and Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2008020404 Minefield/3.0b3pre
No changes in bug 86950 (floats)
Reporter | ||
Comment 17•15 years ago
|
||
Seems to work okay nowadays...
Status: REOPENED → RESOLVED
Closed: 21 years ago → 15 years ago
Resolution: --- → FIXED
Comment 18•15 years ago
|
||
Peter, what do you mean by "works"?
Did you try menus? Menus didn't work at all for me - which might be a different bug. (I'm not sure what all I tested in comment 16 so it's hard to compare to a year ago - sadly I didn't record timings)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090621 Minefield/3.6a1pre (.NET CLR 3.5.30729)
You need to log in
before you can comment on or make changes to this bug.
Description
•