Closed Bug 204073 Opened 21 years ago Closed 21 years ago

more data could be const in layout

Categories

(Core :: Layout, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: ataylor, Assigned: ataylor)

Details

(Keywords: memory-footprint)

Attachments

(1 file)

There are a number of variables in mozilla/layout that could be made const. 
Making them const allows some optimizations not otherwise available, such as
sharing more data between multiple running instances.
Here is a patch that constifies some variables in layout.  It makes an
additional  ~1k of data read-only.
Comment on attachment 122208 [details] [diff] [review]
constifies some variables in layout

nice work! sr=alecf
Attachment #122208 - Flags: superreview+
Attachment #122208 - Flags: review?(ian)
Comment on attachment 122208 [details] [diff] [review]
constifies some variables in layout

I'm not sure that hixie would be the best r= for this... :)

r=me; let me know when you need a checkin (when you have a= or when we reopen
for 1.5a).
Attachment #122208 - Flags: review?(ian) → review+
Checked in.
Status: NEW → RESOLVED
Closed: 21 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: