Closed Bug 244876 Opened 21 years ago Closed 20 years ago

Remove 2 unnecessary memsets in nsTextFrame.cpp

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rp.moz, Assigned: rp.moz)

Details

(Keywords: perf)

Attachments

(1 file)

Note roc's idea of leaving them in debug builds and using 0xdd or something. I like that thought.
Attached patch patchSplinter Review
Voila. I didn't add a debug variable and any assertion because they both already exist: the variable containing the length is mBufferLen and there are already 2 assertions at what seems to be the most strategic place to put one: http://lxr.mozilla.org/mozilla/source/layout/html/base/src/nsTextFrame.cpp#1647
Attachment #149674 - Flags: review?(bzbarsky)
Comment on attachment 149674 [details] [diff] [review] patch r+sr=bzbarsky
Attachment #149674 - Flags: superreview+
Attachment #149674 - Flags: review?(bzbarsky)
Attachment #149674 - Flags: review+
Checked in. This made Tp drop by about 1%, as advertised. ;) For future reference, diffs with more context (-u8, say) and using the -p option are a lot easier to review....
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: