Optimize chunk_by_runtime.get_manifest in the Linux case
Categories
(Testing :: Mozbase, task)
Tracking
(firefox148 fixed)
| 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.
| Assignee | ||
Comment 1•7 months ago
|
||
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^)
Updated•6 months ago
|
Updated•6 months ago
|
Backed out for causing linting failures.
| Assignee | ||
Updated•6 months ago
|
Description
•