Closed Bug 1483998 Opened 6 years ago Closed 6 years ago

Optimize structured cloning

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox63 --- wontfix
firefox64 --- affected

People

(Reporter: evilpie, Assigned: evilpie)

References

(Blocks 2 open bugs)

Details

Structured cloning can be a performance bottleneck for IPC as well as normal JS code usage like postMessage.
Depends on: 1483999
Note postMessage is slow also for other reasons, bug 1254240.
See Also: → 1254240
Priority: -- → P1
Depends on: 1484349
Depends on: 1484370
Depends on: 1486397
Depends on: 1493150
It would be good to have a representative testcase for this. Sadly I got no followup for bug 1302688 or bug 1341900.
There is still probably some opportunity to optimize the DefineDataProperty call when de-serializing, but at the expense of specializing to plain objects / arrays.
I don't have anything else planned for this.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1760153
You need to log in before you can comment on or make changes to this bug.