sizehint!
sizehint!(s, n)
Suggest that collection s
reserve capacity for at least n
elements. This can improve performance.
Examples
julia> foo = Dict();
julia> sizehint!(foo, 10000);
julia> for i in [1:10000]
foo[string(i)] = 2*i;
end;
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.