Closed
Bug 244921
Opened 21 years ago
Closed 21 years ago
tweak nsGenericHTMLElement for code size
Categories
(Core :: DOM: Core & HTML, defect, P1)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: roc, Assigned: roc)
Details
Attachments
(1 file, 1 obsolete file)
13.76 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
The DOM attribute mapping macros can be improved slightly by using slightly
better helpers. Patch coming up.
Assignee | ||
Comment 1•21 years ago
|
||
0) Add helpers for every situation
1) ensure that all helpers return NS_OK when appropriate, so all macro methods
can do a tail call. This may help some compilers to tail-call optimizations.
2) pass only the minimum number of parameters to each helper
3) pass a const char* to GetAttrWithDefault to avoid NS_LITERAL usage.
Assignee | ||
Updated•21 years ago
|
Attachment #149469 -
Flags: superreview?(jst)
Attachment #149469 -
Flags: review?(jst)
Assignee | ||
Comment 2•21 years ago
|
||
fix compiler error
Assignee | ||
Updated•21 years ago
|
Attachment #149469 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #149473 -
Flags: superreview?(jst)
Attachment #149473 -
Flags: review?(jst)
Comment 3•21 years ago
|
||
Comment on attachment 149473 [details] [diff] [review]
fix2
Got any savings numbers (no sweat if you don't)?
r+sr=jst
Attachment #149473 -
Flags: superreview?(jst)
Attachment #149473 -
Flags: superreview+
Attachment #149473 -
Flags: review?(jst)
Attachment #149473 -
Flags: review+
Updated•21 years ago
|
Attachment #149469 -
Flags: superreview?(jst)
Attachment #149469 -
Flags: review?(jst)
Assignee | ||
Comment 4•21 years ago
|
||
I was hoping to get some from Tinderbox :-)
Assignee | ||
Updated•21 years ago
|
Priority: -- → P1
Assignee | ||
Comment 5•21 years ago
|
||
checked in.
Assignee | ||
Comment 6•21 years ago
|
||
This saved 3-4K of code. It also caused a slowdown on btek, although not on
other tinderboxes. I'm not sure what the deal is. I'll probably back this out.
Assignee | ||
Comment 7•21 years ago
|
||
Backed out.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 8•21 years ago
|
||
Backing it out didn't seem to fix btek. So I'm putting it back in.
Assignee | ||
Updated•21 years ago
|
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Assignee | ||
Updated•21 years ago
|
Status: REOPENED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•