From a4e170ff84fbe1d228213e2dcf73422eb606d971 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:33:07 +0200 Subject: [PATCH] Perf --- src/decompression.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decompression.jl b/src/decompression.jl index c3330f9..4f158ea 100644 --- a/src/decompression.jl +++ b/src/decompression.jl @@ -568,7 +568,7 @@ function decompress!( symmetric_color = column_colors(result.symmetric_result) _, col_color_ind = remap_colors(symmetric_color[1:n]) _, row_color_ind = remap_colors(symmetric_color[(n + 1):(n + m)]) - B = zeros(T, n + m, length(unique(symmetric_color))) + B = zeros(T, n + m, maximum(symmetric_color)) for c in axes(B, 2) if haskey(col_color_ind, c) # some columns were colored with c B[(n + 1):(n + m), c] .+= @view Bc[:, col_color_ind[c]]