Closed Bug 811132 Opened 13 years ago Closed 13 years ago

Avoid some wasted space by making XPT arena chunks bigger.

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

(Whiteboard: [MemShrink])

Attachments

(1 file)

The XPT arena chunk size is currently 1 KiB. I experimented with making it bigger, to see if it reduced the size of "explicit/xpti-working-set". chunk size desktop64 b2g-desktop64 ---------- --------- ------------- 1 KiB 1,702,096 B 1,639,632 B 4 KiB 1,618,128 B 1,560,784 B 8 KiB 1,581,264 B 1,532,112 B 16 KiB 1,573,072 B 1,523,920 B 32 KiB 1,573,072 B 1,507,536 B 64 KiB 1,605,840 B 1,540,304 B The best size was 32 KiB for both cases.
In this patch I've used 16 KiB because the allocation sizes are a bit smaller on 32-bit (e.g. bug 802446 says that on b2g xpti-working-set is currently 1,152,128 bytes). So I'm guessing this will be roughly a 70--80 KiB per-process win on b2g, at least until bug 799658 is done.
Attachment #680847 - Flags: review?(khuey)
Blocks: slim-fast
Whiteboard: [MemShrink]
Comment on attachment 680847 [details] [diff] [review] Avoid some wasted space by making XPT arena chunks bigger. Simple change, beneficial on desktop even. a=me
Attachment #680847 - Flags: approval-mozilla-aurora+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: