Skip to content

Use of deepcopy doesn't trim well #648

@RomeoV

Description

@RomeoV

This package uses deepcopy at 19 locations (rg "deepcopy" | wc -l).
However, deepcopy doesn't work well for trimming binaries.

For instance, in https://github.com/RomeoV/TrimSimpleNonlinearSolve.jl we differentiate though a linear solve
with ForwardDiff which triggers https://github.com/RomeoV/LinearSolve.jl/blob/rv%2Fremove-linsolve-forwarddiff-special-path/ext/LinearSolveForwardDiffExt.jl#L57 and results in errors while trimming.
We can resolve it by removing this extension, but probably we need some better way of handling deepcopy, perhaps a deepcopy_noalias?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions