Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specialize certain operations for Static.jl #177

Open
oschulz opened this issue Apr 6, 2022 · 0 comments
Open

Specialize certain operations for Static.jl #177

oschulz opened this issue Apr 6, 2022 · 0 comments

Comments

@oschulz
Copy link

oschulz commented Apr 6, 2022

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant