Skip to content

Commit dd7789c

Browse files
committed
remove unbound type parameters
Unbound type parameters often cause performance issues and run time dispatch. Issue found using JuliaLang/julia#46608
1 parent 222acf1 commit dd7789c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/aggregators/rdirect.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function RDirectJumpAggregation(nj::Int, njt::T, et::T, crs::Vector{T}, sr::T, m
2424
rs::F1, affs!::F2, sps::Tuple{Bool, Bool}, rng::RNG;
2525
num_specs, counter_threshold = length(crs),
2626
dep_graph = nothing,
27-
kwargs...) where {T, S, F1, F2, RNG, DEPGR}
27+
kwargs...) where {T, S, F1, F2, RNG}
2828
# a dependency graph is needed and must be provided if there are constant rate jumps
2929
if dep_graph === nothing
3030
if (get_num_majumps(maj) == 0) || !isempty(rs)

src/jumps.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ function MassActionJump(usr::T, rs::S, ns::U, pmapper::V; scale_rates = true,
249249
MassActionJump{T, S, U, V}(usr, rs, ns, pmapper, scale_rates, useiszero, nocopy)
250250
end
251251
function MassActionJump(usr::T, rs, ns; scale_rates = true, useiszero = true,
252-
nocopy = false) where {T <: AbstractVector, S, U}
252+
nocopy = false) where {T <: AbstractVector}
253253
MassActionJump(usr, rs, ns, nothing; scale_rates = scale_rates, useiszero = useiszero,
254254
nocopy = nocopy)
255255
end
256256
function MassActionJump(usr::T, rs, ns; scale_rates = true, useiszero = true,
257-
nocopy = false) where {T <: Number, S, U}
257+
nocopy = false) where {T <: Number}
258258
MassActionJump(usr, rs, ns, nothing; scale_rates = scale_rates, useiszero = useiszero,
259259
nocopy = nocopy)
260260
end

0 commit comments

Comments
 (0)