Closed Bug 1886167 Opened 9 months ago Closed 8 months ago

Parallelize the generation part of webidl

Categories

(Core :: DOM: Bindings (WebIDL), task)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Once the sequential parsing is done, dumping individual files can be done in parallel (at least conceptually). It would be great if the code could take advantage of that property

Component: General → DOM: Bindings (WebIDL)
Product: Firefox Build System → Core

Parallelization is process based, which implies a pickle-compatible IR,
thus the few code changes.

It is mandatory to serialize the IR only once per process for the
parallelization to be beneficial.

The parsing is still single-threaded.

Attachment #9391997 - Attachment description: Bug 1886167 - Parallelize webidl generation step r=peterv → Bug 1886167 - Parallelize webidl generation step r=peterv!
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc73456fe2ef Parallelize webidl generation step r=peterv

Backed out for causing WebIDL py3 failures

Flags: needinfo?(sguelton)
Depends on: 1889043
Flags: needinfo?(sguelton)
Depends on: 1889067
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1973c82d95a4 Parallelize webidl generation step r=peterv
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

Other than the faulty Python API issue, forking 60 processes is quite expensive on Windows and takes 40sec on my Threadripper machine. This limits on 4 processes because any more than that actually makes things slower.

(Giving 4 processes causes no difference from not spawning extra process at all, but for now I'm not disabling parallel pool here.)

Comment on attachment 9395201 [details]
Bug 1886167 - Limit to 4 processes on Windows r=peterv,sergesanspaille

Revision D206740 was moved to bug 1889842. Setting attachment 9395201 [details] to obsolete.

Attachment #9395201 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: