Closed
Bug 1877249
Opened 2 years ago
Closed 2 years ago
Can we save some memory by making JS_Stringify use Latin1 by default?
Categories
(Core :: JavaScript Engine, enhancement, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: nbp, Assigned: nbp)
References
(Blocks 2 open bugs)
Details
JS_Stringify
is used while writting JSON files for the SessionWritter
, which has some latency and potentially some memory consumption issues.
Today JS_Stringify
enforces that all strings are encoded with 2 bytes.
We should double check if we can reduce the amount of memory allocated and copied simply letting the StringBuffer promote the buffer to char16_t
when this becomes needed.
Assignee | ||
Updated•2 years ago
|
Severity: -- → N/A
Priority: -- → P1
Assignee | ||
Comment 1•2 years ago
|
||
Removing the line which forces to allocation a char16_t
buffer does not seems to improve any benchmarks:
https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=7229778a48e4e7bcd2383643c43300af9069ff4b&newProject=try&newRevision=fe0eafe90081007e2eccb165fe71f57647a6e3e2&page=1&framework=13
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•