Closed Bug 1805842 Opened 3 years ago Closed 3 years ago

Job transformation relies a lot on expensive deepcopy

Categories

(Taskcluster :: General, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

Details

Attachments

(1 file)

copy.deepcopy is a generic way of performing a "deep" copy of an object, and it's used a lot across taskcluster code.

We could make it faster by taking advantage of the tree structure of the jobs (no cycles) to have a more efficient deepcopying routine.

This module defines a single, efficient function to deepcopy a job. It
is faster than deepcopy because it doesn't need to track cycles and
duplicate references that don't make sense for tree (and not graph)
structures.

I measure a speedup > 10% on mach taskgraph tasks --fast >/dev/null.

Attachment #9308459 - Attachment description: Bug 1805842 - Introduce gecko_taskgraph.util.copyjob → WIP: Bug 1805842 - Introduce gecko_taskgraph.util.copyjob
Attachment #9308459 - Attachment description: WIP: Bug 1805842 - Introduce gecko_taskgraph.util.copyjob → Bug 1805842 - Introduce gecko_taskgraph.util.copyjob
Attachment #9308459 - Attachment description: Bug 1805842 - Introduce gecko_taskgraph.util.copyjob → Bug 1805842 - Introduce gecko_taskgraph.util.copy_task
Attachment #9308459 - Attachment description: Bug 1805842 - Introduce gecko_taskgraph.util.copy_task → Bug 1805842 - Introduce gecko_taskgraph.util.copyjob
Attachment #9308459 - Attachment description: Bug 1805842 - Introduce gecko_taskgraph.util.copyjob → Bug 1805842 - Introduce gecko_taskgraph.util.copy_task
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fa2cdac6989a Introduce gecko_taskgraph.util.copy_task r=taskgraph-reviewers,jlorenzo

Backed out 4 changesets (Bug 1805842, Bug 1806472, Bug 1806473, Bug 1803537) for causing build bustage on Gecko Decition Task.
Backout link
Push with failures <--> D
Failure Log

Flags: needinfo?(sguelton)
Type: enhancement → task
Attachment #9308459 - Attachment description: Bug 1805842 - Introduce gecko_taskgraph.util.copy_task → Bug 1805842 - Introduce gecko_taskgraph.util.copy_task r=ahal
Attachment #9308459 - Attachment description: Bug 1805842 - Introduce gecko_taskgraph.util.copy_task r=ahal → Bug 1805842 - Introduce gecko_taskgraph.util.copy_task r=ahal!
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5aae8c28c366 Introduce gecko_taskgraph.util.copy_task r=jlorenzo
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Flags: needinfo?(sguelton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: