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)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: jrmuizel, Assigned: jrmuizel)
Details
Attachments
(1 file)
454 bytes,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
We duplicate a large number of strings. This helps cut down on that.
Updated•13 years ago
|
Attachment #659505 -
Flags: review+
Comment 1•13 years ago
|
||
I can't find any documentation on JS_InternStringN. How does it work?
Assignee | ||
Comment 2•13 years ago
|
||
(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.
Assignee | ||
Comment 3•13 years ago
|
||
Assignee: nobody → jmuizelaar
Comment 4•13 years ago
|
||
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.
Description
•