Skip to content

Specialize certain operations for Static.jl #177

Open
@oschulz

Description

@oschulz

Derived from #176 and #104

@dlfivefifty: I would say a better solution may be to just support Fill{StaticInt}, etc.

Taking on Static.jl as a dependency would open up interesting possibilities. For example, we could specialize vcat (related to #140) to get:

vcat(Fill(static(4.2), 5), Fill(static(4.2), 5)) === Fill(static(4.2), 10)

Static.jl is a lightweight dependency on top of FillArrays, load-time impact would probably be minor (needs to be tested, of course):

julia> @time using FillArrays
  0.398913 seconds (764.83 k allocations: 46.937 MiB, 72.11% compilation time)

julia> @time using Static
  0.062017 seconds (93.65 k allocations: 5.420 MiB)

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