Skip to content

Compile-time issues with update funcs #216

@gaurav-arya

Description

@gaurav-arya

There are some surprising compile times when repeatedly creating an operator:

using SciMLOperators

@time ScalarOperator(0.0; update_func=(u, p, t)->3) # 0.02 secs
@time ScalarOperator(0.0; update_func=(u, p, t)->3) # still 0.02 secs
@time ScalarOperator(0.0; update_func=(u, p, t)->3) # still 0.02 secs

If this an issue, perhaps it's due to the FilterKwargs design -- we may want to consider tweaking the internal design to reduce compile time, perhaps using function wrappers?

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