Skip to content

Commit

Permalink
Add CommonWorldInvalidations world
Browse files Browse the repository at this point in the history
This makes this package invalidation-free and precompiles based on an earlier state which matches Symbolics and thus reduces/removed repeated invalidation handling. This shouldn't effect compile at all from where we were before, but it will change precompilation time as it moves it all to a shared moment.
  • Loading branch information
ChrisRackauckas committed Jun 29, 2024
1 parent cbd29c7 commit bc6c8b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name = "Static"
uuid = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
authors = ["chriselrod", "ChrisRackauckas", "Tokazama"]
version = "1.0.0"
version = "1.1.0"

[deps]
CommonWorldInvalidations = "f70d9fcc-98c5-4d4a-abd7-e4cdeebd8ca8"
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"

[compat]
Aqua = "0.8.4"
Expand Down
6 changes: 6 additions & 0 deletions src/Static.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import IfElse: ifelse
export StaticInt, StaticFloat64, StaticSymbol, True, False, StaticBool, NDIndex
export dynamic, is_static, known, static, static_promote

import PrecompileTools: @recompile_invalidations

@recompile_invalidations begin
import CommonWorldInvalidations
end

"""
StaticSymbol
Expand Down

0 comments on commit bc6c8b2

Please sign in to comment.