If the number of entries is too small, it will have to resize, which comes at a small cost, and it won't be arranged as efficiently.
In general, it is better to oversize the map so you don't have to worry about this. On Linux systems it uses sparse files so you might not even end up using more disk space.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…