Closed
Bug 74833
Opened 23 years ago
Closed 21 years ago
nsLineLayout::RecordWordFrame inefficient
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 129167
mozilla1.2alpha
People
(Reporter: bratell, Assigned: attinasi)
References
()
Details
(Keywords: perf)
I was looking at profiles for the URL http://www.javasoft.com/j2se/1.3/docs/api/index-files/index-7.html which is slow in Mozilla and noticed that we store text frames in a nsVoidArray when calculating text width. That's probably right, but we do it in an inefficient way so that this single function is a whole percent of the total time for the page. The problem is that every nsLineLayout::RecordWordFrame causes a nsVoidArray::InsertElementAt which causes a new and memory allocations are expensive in Mozilla. Is it possible to reserve space in the array to begin with, or grew it in bigger chunks than one at a time?
Comment 1•23 years ago
|
||
line layout => reassigned to attinasi
Assignee: karnaze → attinasi
Target Milestone: --- → mozilla1.0
Updated•23 years ago
|
Target Milestone: mozilla1.0 → mozilla1.2
Updated•23 years ago
|
Keywords: mozilla1.0
Comment 2•22 years ago
|
||
What's the status of this bug ? There hasn't been any activity since 04/2001. Is Marc Attinasi (bug owner) still working on Mozilla ? I can't find any recent comment from him in Mozilla.
Comment 3•21 years ago
|
||
The nsVoidArray got replaced with an nsDeque, which uses progressive doubling, in bug 129167. *** This bug has been marked as a duplicate of 129167 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•