Closed Bug 1688886 Opened 5 years ago Closed 5 years ago

Optimize XDRImmutableScriptData

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(1 file)

Just like other stencil struct, we can encode/decode fields with codeBytes,
instead of encoding each field one by one.

Actually, ImmutableScriptData is already suitable for bulk-copy.
we just need to modify XDRImmutableScriptData.

Summary: Optimize ImmutableScriptData for XDR → Optimize XDRImmutableScriptData

WIP patch reduces 2% of the time taken by decoding and instantiating XDR data of yahoo-mail mail_app_es6_09*

ImmutableScriptData is already packed, and doesn't contain pointers.
When encoding, it encode the entire data at once.
When decoding, it allocate ImmutableScriptData with given size, and then
read data, and then validate the size on debug build.

Depends on D103162

Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/054668abe4fd Encode/decode ImmutableScriptData at once. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Regressions: 930307
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: