I’ve written a program in Julia involving heavy insertion and deletion of elements from many separate
Dict containers. The memory usage gets bad, and I tracked down the cause (I believe) to the fact that Julia Dicts cannot be shrunk by either deleting keys or calling
sizehint!(), so all the Dicts in my program are consuming a maximum amount of RAM needed over the whole duration of the run. Does Julia plan to implement the shrinking feature for Dict in the near future? If not I’ll try to restructure my program.
P.S. Are there alternative data structures (from third-party packages) which implements the
AbstractDict interface while allowing shrinking?