Skip to content

Symbolics.build_funciton now supports common-subexpression elimination #758

@baggepinnen

Description

@baggepinnen

build_function(...; cse=true) can now yield enormous speedups, the simple benchmark here went from 2.490 μs to 184.236 ns for a sparse Hessian. It would be nice if this was activated in DI.

@AayushSabharwal are there any cons to enabling it by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendRelated to one or more autodiff backends

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions