Skip to content

Specialize on copyto!(::Field, ::typeof(broadcasted(identity, ::Field))) #1887

Open
@charleskawczynski

Description

@charleskawczynski

We can easily specialize on @. x = y where typeof(x) == typeof(y) to dispatch into the copyto!(::Field, ::Field) method, which is ~2x faster. There aren't many cases where we do this, but Base and CUDA do this-- it's still probably worth it.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions