Change default bucket count in hash_set/hash_map.
authorEric Fiselier <eric@efcs.ca>
Thu, 1 Aug 2019 19:48:29 +0000 (19:48 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 1 Aug 2019 19:48:29 +0000 (19:48 +0000)
commit3eb5aec61f684e59439c30849f73dae8298f5056
tree917617adb29a16c00b33aad48e517620a2a7a504
parentd9d30a408e7ec9b1c201046ee887ff055ea50bb1
Change default bucket count in hash_set/hash_map.

Previously these types rehashed to a table of 193 elements
upon construction. But this is non-ideal, first because default
constructors should not allocate unless necessary, and second
because 193 is big and can waste a bunch of memory.

This number had previously been chosen to match GCC's implementation.

llvm-svn: 367605
libcxx/include/ext/hash_map
libcxx/include/ext/hash_set
libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
libcxx/test/libcxx/containers/gnu_cxx/hash_map_name_lookup.pass.cpp [new file with mode: 0644]
libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp
libcxx/test/libcxx/containers/gnu_cxx/hash_set_name_lookup.pass.cpp [new file with mode: 0644]