Closed Bug 2003230 Opened 7 months ago Closed 6 months ago

Optimize chunk_by_runtime.get_manifest in the Linux case

Categories

(Testing :: Mozbase, task)

task

Tracking

(firefox148 fixed)

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This static method shows up at the top of the profile in terms of time spent in the function itself, excluding callees, so it's worth optimizing it.

Optimizing get_manifest in the common case of os.sep == '/' yields a
nice 138ms gain on task graph rebuild.

% hyperfine -L branch experiment/try-validate^,experiment/try-validate -w1 -r5 -s 'git checkout {branch}' 'TASKGRAPH_SERIAL=1 ./mach taskgraph full -k mochitest'
Benchmark 1: TASKGRAPH_SERIAL=1 ./mach taskgraph full -k mochitest (branch = experiment/try-validate^)
Time (mean ± σ): 19.569 s ± 0.081 s [User: 19.841 s, System: 2.932 s]
Range (min … max): 19.440 s … 19.653 s 5 runs

Benchmark 2: TASKGRAPH_SERIAL=1 ./mach taskgraph full -k mochitest (branch = experiment/try-validate)
Time (mean ± σ): 19.431 s ± 0.077 s [User: 19.676 s, System: 3.008 s]
Range (min … max): 19.343 s … 19.511 s 5 runs

Summary
TASKGRAPH_SERIAL=1 ./mach taskgraph full -k mochitest (branch = experiment/try-validate) ran
1.01 ± 0.01 times faster than TASKGRAPH_SERIAL=1 ./mach taskgraph full -k mochitest (branch = experiment/try-validate^)

Component: Task Configuration → Mozbase
Product: Firefox Build System → Testing
Attachment #9529991 - Attachment description: Bug 2003230 - optimize chunk_by_runtime.get_manifest for the Linux case r=jcristau → Bug 2003230 - optimize chunk_by_runtime.get_manifest for the Linux case r=jcristau!
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2f8f70d930c5 https://hg.mozilla.org/integration/autoland/rev/89f408b23951 Revert "Bug 2003230 - optimize chunk_by_runtime.get_manifest for the Linux case r=jcristau" for causing linting failures.

Backed out for causing linting failures.

Flags: needinfo?(sguelton)
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Flags: needinfo?(sguelton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: