Skip to content

Commit b1b8ebe

Browse files
committed
Remove precompile statements
1 parent 147a5b9 commit b1b8ebe

File tree

8 files changed

+6
-170
lines changed

8 files changed

+6
-170
lines changed

src/Bridges/Bridges.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ MOI.is_copyable(::ListOfNonstandardBridges) = false
142142

143143
MOI.get_fallback(model::MOI.ModelLike, ::ListOfNonstandardBridges) = Type[]
144144

145-
include("precompile.jl")
146-
147145
function _test_structural_identical(
148146
a::MOI.ModelLike,
149147
b::MOI.ModelLike;

src/Bridges/precompile.jl

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/MathOptInterface.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,6 @@ include("FileFormats/FileFormats.jl")
376376

377377
include("instantiate.jl")
378378

379-
_precompile_()
380-
381379
"""
382380
IndexMap()
383381

src/Nonlinear/ReverseAD/ReverseAD.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,4 @@ include("reverse_mode.jl")
3939
include("forward_over_reverse.jl")
4040
include("mathoptinterface_api.jl")
4141

42-
include("precompile.jl")
43-
4442
end # module

src/Nonlinear/ReverseAD/precompile.jl

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/Utilities/Utilities.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,4 @@ include("set_dot.jl")
7272

7373
include("distance_to_set.jl")
7474

75-
include("precompile.jl")
76-
_precompile_()
77-
7875
end # module

src/Utilities/precompile.jl

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/precompile.jl

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ function precompile_constraint(model, F, S)
3535
Base.precompile(delete, (model, ConstraintIndex{F,S}))
3636
Base.precompile(is_valid, (model, ConstraintIndex{F,S}))
3737
Base.precompile(get, (model, ConstraintName, ConstraintIndex{F,S}))
38-
return Base.precompile(
38+
Base.precompile(
3939
set,
4040
(model, ConstraintName, ConstraintIndex{F,S}, String),
4141
)
42+
return
4243
end
4344

4445
function precompile_variables(model)
@@ -60,7 +61,8 @@ function precompile_variables(model)
6061
)
6162
Base.precompile(get, (model, VariablePrimal, VariableIndex))
6263
Base.precompile(get, (model, VariablePrimal, Vector{VariableIndex}))
63-
return Base.precompile(add_constrained_variables, (model, Reals))
64+
Base.precompile(add_constrained_variables, (model, Reals))
65+
return
6466
end
6567

6668
function precompile_model(model, constraints)
@@ -88,16 +90,6 @@ function precompile_model(model, constraints)
8890
for (F, S) in constraints
8991
precompile_constraint(model, F, S)
9092
end
91-
return Base.precompile(Tuple{typeof(add_constrained_variables),model,Reals})
92-
end
93-
94-
function _precompile_()
95-
return Base.precompile(
96-
Tuple{
97-
Core.kwftype(typeof(instantiate)),
98-
NamedTuple{(:with_bridge_type,),Tuple{DataType}},
99-
typeof(instantiate),
100-
Type,
101-
},
102-
) # time: 0.481656
93+
Base.precompile(Tuple{typeof(add_constrained_variables),model,Reals})
94+
return
10395
end

0 commit comments

Comments
 (0)