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

Remove recompile_invalidations #450

Merged
merged 6 commits into from
Jun 27, 2024
Merged

Conversation

ChrisRackauckas
Copy link
Member

@recompile_invalidations should only be used in very specific scenarios, and this is not one of those scenarios. Also, there are big changes being done with https://github.com/SciML/CommonWorldInvalidations.jl. With that, we only need to @recompile_invalidations on a few entry points. In particular, Static.jl, Symbolics.jl, and preferably ForwardDiff.jl and StaticArrays.jl would adopt it too. But this means that in order to handle all of this effectively, in SciML we only need to apply it on Static.jl, Symbolics.jl, and SciMLBase.jl and the whole ecosystem should be fine.

In any case, this library doesn't need it. It shouldn't make a tangible difference in compile times, while it increases precompile times by a lot.

`@recompile_invalidations` should only be used in very specific scenarios, and this is not one of those scenarios. Also, there are big changes being done with https://github.com/SciML/CommonWorldInvalidations.jl. With that, we only need to `@recompile_invalidations` on a few entry points. In particular, Static.jl, Symbolics.jl, and preferably ForwardDiff.jl and StaticArrays.jl would adopt it too. But this means that in order to handle all of this effectively, in SciML we only need to apply it on Static.jl, Symbolics.jl, and SciMLBase.jl and the whole ecosystem should be fine.

In any case, this library doesn't need it. It shouldn't make a tangible difference in compile times, while it increases precompile times by a lot.
src/NonlinearSolve.jl Outdated Show resolved Hide resolved
src/NonlinearSolve.jl Outdated Show resolved Hide resolved
src/NonlinearSolve.jl Outdated Show resolved Hide resolved
src/NonlinearSolve.jl Outdated Show resolved Hide resolved
src/NonlinearSolve.jl Outdated Show resolved Hide resolved
ChrisRackauckas and others added 5 commits June 27, 2024 10:24
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@ChrisRackauckas ChrisRackauckas merged commit 3b48d8d into master Jun 27, 2024
21 of 23 checks passed
@ChrisRackauckas ChrisRackauckas deleted the ChrisRackauckas-patch-1 branch June 27, 2024 02:25
Comment on lines 13 to 14
using ADTypes: AutoSparseFiniteDiff, AutoSparseForwardDiff,
AutoSparsePolyesterForwardDiff, AutoSparseZygote
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
using ADTypes: AutoSparseFiniteDiff, AutoSparseForwardDiff,
AutoSparsePolyesterForwardDiff, AutoSparseZygote
using ADTypes: AutoSparseFiniteDiff, AutoSparseForwardDiff, AutoSparsePolyesterForwardDiff,
AutoSparseZygote

Comment on lines 31 to 32
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess,
istril, istriu, lu, mul!, norm, pinv, tril!, triu!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess,
istril, istriu, lu, mul!, norm, pinv, tril!, triu!
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, istril,
istriu, lu, mul!, norm, pinv, tril!, triu!

Comment on lines 47 to 50
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!,
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac,
num_vecjac!, sparse_jacobian, sparse_jacobian!,
sparse_jacobian_cache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!,
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac,
num_vecjac!, sparse_jacobian, sparse_jacobian!,
sparse_jacobian_cache
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, auto_vecjac,
init_jacobian, num_jacvec, num_jacvec!, num_vecjac, num_vecjac!,
sparse_jacobian, sparse_jacobian!, sparse_jacobian_cache

Comment on lines 53 to 54
symbolic_container, parameter_values, state_values,
getu, setu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
symbolic_container, parameter_values, state_values,
getu, setu
symbolic_container, parameter_values, state_values, getu,
setu

Comment on lines 31 to 32
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess,
istril, istriu, lu, mul!, norm, pinv, tril!, triu!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess,
istril, istriu, lu, mul!, norm, pinv, tril!, triu!
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, istril,
istriu, lu, mul!, norm, pinv, tril!, triu!

Comment on lines 47 to 50
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!,
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac,
num_vecjac!, sparse_jacobian, sparse_jacobian!,
sparse_jacobian_cache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!,
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac,
num_vecjac!, sparse_jacobian, sparse_jacobian!,
sparse_jacobian_cache
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, auto_vecjac,
init_jacobian, num_jacvec, num_jacvec!, num_vecjac, num_vecjac!,
sparse_jacobian, sparse_jacobian!, sparse_jacobian_cache

Comment on lines 53 to 54
symbolic_container, parameter_values, state_values,
getu, setu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
symbolic_container, parameter_values, state_values,
getu, setu
symbolic_container, parameter_values, state_values, getu,
setu

Comment on lines 31 to 32
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess,
istril, istriu, lu, mul!, norm, pinv, tril!, triu!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess,
istril, istriu, lu, mul!, norm, pinv, tril!, triu!
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, istril,
istriu, lu, mul!, norm, pinv, tril!, triu!

Comment on lines 52 to 53
symbolic_container, parameter_values, state_values,
getu, setu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
symbolic_container, parameter_values, state_values,
getu, setu
symbolic_container, parameter_values, state_values, getu,
setu

Comment on lines 52 to 53
symbolic_container, parameter_values, state_values,
getu, setu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
symbolic_container, parameter_values, state_values,
getu, setu
symbolic_container, parameter_values, state_values, getu,
setu

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

Successfully merging this pull request may close these issues.

None yet

2 participants