diff --git a/src/markets/search_and_matching.jl b/src/markets/search_and_matching.jl index c649792..b5557ec 100644 --- a/src/markets/search_and_matching.jl +++ b/src/markets/search_and_matching.jl @@ -575,7 +575,6 @@ function create_weighted_sampler(P_f, S_f, F_g) sampler = DynamicSampler() isempty(F_g) && return sampler w_cum_f_ = compute_price_size_weights(P_f, S_f, F_g) - sizehint!(sampler, length(F_g)) append!(sampler, 1:length(F_g), w_cum_f_) return sampler end