Closed
Bug 1904328
Opened 1 year ago
Closed 1 year ago
Share string buffer when passing JS strings between zones
Categories
(Core :: JavaScript Engine, task, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
129 Branch
| Tracking | Status | |
|---|---|---|
| firefox129 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(2 files)
Non-atom strings belong to a single zone and are copied when passed to other zones. For strings with a shared StringBuffer, we can instead allocate a new JS string that shares the underlying buffer.
Strings with string buffers aren't that common yet, but this will change as we start using them more.
| Assignee | ||
Comment 1•1 year ago
|
||
This is a bit simpler for the callers.
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Severity: -- → N/A
Priority: -- → P1
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c4a5e8d94644
part 1 - Remove chars argument from new_/newValidLength functions. r=sfink
https://hg.mozilla.org/integration/autoland/rev/2a9c086e4781
part 2 - Optimize CopyStringPure to share StringBuffer if possible. r=sfink
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c4a5e8d94644
https://hg.mozilla.org/mozilla-central/rev/2a9c086e4781
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox129:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Updated•1 year ago
|
Whiteboard: [sp3]
Updated•1 year ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-775
You need to log in
before you can comment on or make changes to this bug.
Description
•