[Chapel Merge] Update default chpl__hashtable, map, and set initi

Branch: refs/heads/main
Revision: ad526fd
Author: bmcdonald3
Link: Update default chpl__hashtable, map, and set initialCapacity to 16 by bmcdonald3 · Pull Request #18818 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #18818 from bmcdonald3/map-initial

Update default chpl__hashtable, map, and set initialCapacity to 16

[ reviewed by @aconsroe-hpe ]

chpl__hashtable sets the default table size to be 32, but map currently sets it to 16. This PR updates the map default size to be 32 to be consistent with that decision. The difference in numbers there stems from our definition of "initial capacity" where initially, we were defining it as "initial size of table", but decided to make it actually mean the number of elements the table can hold, so the starting table size will be larger than the initial capacity.

  • [x] paratest

Motivated by Documentation improvements for set module · Issue #18655 · chapel-lang/chapel · GitHub

Modified Files:
M modules/internal/ChapelHashtable.chpl

M modules/standard/Map.chpl
M modules/standard/Set.chpl
M test/types/chplhashtable/resize-threshold-oob1.good
M test/types/chplhashtable/resize-threshold-oob2.good

Compare: https://github.com/chapel-lang/chapel/compare/8849205469bb...ad526fdacd05