Closed Bug 1047648 Opened 10 years ago Closed 10 years ago

TelemetryImpl::mHistogramMap can use nsDepCharHashKey

Categories

(Toolkit :: Telemetry, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: mccr8, Assigned: mccr8)

Details

(Whiteboard: [MemShrink:P3])

Attachments

(1 file)

In bug 1047523, froydnj pointed out that mHistogramMap doesn't outlive the string keys it uses, so it can use nsDepCharHashKey.  On OSX desktop, on a newly-opened browser, this saves 38kb of memory.

I'm not sure how telemetry works on B2G, but if it is there, it might be worth backporting some places, as it is super simple.
Attachment #8466534 - Flags: review?(aklotz) → review+
Whiteboard: [MemShrink] → [MemShrink:P3]
https://hg.mozilla.org/mozilla-central/rev/0ff2c61b9e41
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: