I don't think we have an API for this – I would suggest that sizehint!(c,n) where n is smaller than the current size of the collection c should do this, if someone wants to take a crack at it.
On Wed, Nov 25, 2015 at 5:02 PM, Seth <catch...@bromberger.com> wrote: > Inspired by a discussion here: > https://github.com/JuliaLang/julia/issues/14112#issuecomment-159715454, > it might be nice to be able to reduce the amount of "padded" > (allocated-but-not-yet-used) memory for dynamic structures in certain cases > where we're not planning to expand the structures significantly (and can > tolerate allocation delays if we do). > > Does a function that does something like this exist already? >