Closed Bug 1509846 Opened 7 years ago Closed 7 years ago

Validate functions in parallel when compiling with Cranelift

Categories

(Core :: JavaScript: WebAssembly, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: bbouvier, Assigned: bbouvier)

References

Details

Attachments

(1 file)

While looking at bug 1509441, I saw a Cranelift #idef, showing that function validation was happening on the main thread for Cranelift. This is sub-efficient for many reasons (not parallelized work + this ends up checking the head and tail twice), plus since we have all the mechanisms to do validation on helper thread and report errors to the main threads. We should just do it on the helper threads instead (this should be a small compilation time win in baldrdash).
Attached patch fix.patchSplinter Review
This removes ~40 lines of code and it shaves off a few hundred milliseconds when compiling AngryBots with Baldrdash.
Assignee: nobody → bbouvier
Status: NEW → ASSIGNED
Attachment #9027520 - Flags: review?(lhansen)
Attachment #9027520 - Flags: review?(lhansen) → review+
Pushed by bbouvier@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2b4844c3f4d8 Validate in parallel when compiling with Cranelift; r=lth
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: