From 33c1cbbb466b52e4f97b0a934d522a93dab395af Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Tue, 15 Aug 2023 12:17:50 -0400 Subject: [PATCH] Remove unbound arg Having `I` unbound in this position results in allocations and reduced performance. --- src/k-way-merge.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k-way-merge.jl b/src/k-way-merge.jl index 4ef8cf2..5849ef0 100644 --- a/src/k-way-merge.jl +++ b/src/k-way-merge.jl @@ -33,7 +33,7 @@ struct VecMergeTree{A<:AbstractVector, B<:AbstractMatrix, C<:AbstractMatrix, T,V ranges::C over::Vector{Bool} - function VecMergeTree(data::AbstractVector{T}, ::Val{V},::Val{K}) where {T,V,K,I} + function VecMergeTree(data::AbstractVector{T}, ::Val{V},::Val{K}) where {T,V,K} cache = reshape(valloc(T, div(32, sizeof(T)), V*(2*K-1)), V, 2*K-1) J = div(length(data), V*K) ranges = copy(reshape([1:J:K*J; J:J:K*J+J-1],:,2)')