Closed
Bug 249923
Opened 21 years ago
Closed 21 years ago
Code size reduction / speed up of nsViewManager class
Categories
(Core :: Web Painting, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jim_nance, Assigned: roc)
Details
(Keywords: memory-footprint, perf)
Attachments
(1 file)
13.45 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
A little more work in nsViewManager.cpp:
I removed the nsHashtable from the nsViewManager class. It was only used by two
methods, both of which were called from a common parent. I create the hash
table on the stack now, and pass it down to the functions that use it.
I removed the method DestroyZTreeNode(). It was only called from
ReparentViews() and all it did was to remove nodes from the hash table. I do
not think it is necessary to remove these nodes. They will all die anyway when
ReparentViews returns and the hash is destroyed. However, I am not that
familiar with this code, and would appreciate feedback on this.
tricia> size old/nsViewManager.o nsViewManager.o
text data bss dec hex filename
32691 396 20 33107 8153 old/nsViewManager.o
32363 396 20 32779 800b nsViewManager.o
It is definitly smaller and probably faster too.
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 152364 [details] [diff] [review]
Patch to remove hashtable from class, and to remove DestroyZTreeNode
cool
Attachment #152364 -
Flags: superreview+
Attachment #152364 -
Flags: review+
Updated•21 years ago
|
Code is checked in. Hopefully this will go better than the last one :-)
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•