How to preallocate memory for a map in odin?
12:56 19 Oct 2025

I'm learning odin, and I'm writing a program where the map allocating memory, growing and doing its checks is a considerable part of my program running time, is there a way to have a map where I can preallocate some of the memory?, or maybe set the max number of items and allocate that memory on creation?

memory-management dynamic-memory-allocation odin odin-lang