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)

enhancement

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.

Severity: -- → N/A
Priority: -- → P1
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.