File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -31,3 +31,11 @@ julia> known(typeof(1)) === nothing # `Int` has no compile time known value
31
31
true
32
32
33
33
```
34
+
35
+ ## Types, Dispatch, Compile-Time, and StaticNumbers.jl
36
+
37
+ Static.jl does not subtype the Base number types. For example, ` !(StaticInt <: Integer) ` . The reason for this is that it
38
+ invalidates all downstream compilation caches. This has a major effect, for example, causing LoopVectorization.jl to
39
+ not precompile and ultimately giving the ODE solvers >20 second extra compile times. To avoid these invalidations, the
40
+ dispatches were removed. An alternative library [ StaticNumbers.jl] ( https://github.com/perrutquist/StaticNumbers.jl ) is
41
+ more ergonomic but has these invalidations. Use the library that is more appropriate for your use case.
You can’t perform that action at this time.
0 commit comments