Closed Bug 789717 Opened 13 years ago Closed 13 years ago

Use JS_InternStringN to avoid large memory usage in the profiler

Categories

(Core :: Gecko Profiler, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: jrmuizel, Assigned: jrmuizel)

Details

Attachments

(1 file)

We duplicate a large number of strings. This helps cut down on that.
Attachment #659505 - Flags: review+
I can't find any documentation on JS_InternStringN. How does it work?
(In reply to Benoit Girard (:BenWa) from comment #1) > I can't find any documentation on JS_InternStringN. How does it work? A hash table of atoms is maintained, if the hash matches it returns a reference to that atom instead of a copy of the string. I wasn't able to figure out how expiry works.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: