1 # Hash Map |
1 # Hash Map |
2 |
2 |
3 UCX provides a basic hash map implementation with a configurable amount of buckets. |
3 UCX provides a basic hash map implementation with a configurable amount of buckets. |
4 If you do not specify the number of buckets, a default of 16 buckets will be used. |
4 If you do not specify the number of buckets, a default of 16 buckets will be used. |
|
5 |
5 You can always rehash the map with `cxMapRehash()` to change the number of buckets to something more efficient, |
6 You can always rehash the map with `cxMapRehash()` to change the number of buckets to something more efficient, |
6 but you need to be careful, because when you use this function you are effectively locking into using this |
7 but you need to be careful, because when you use this function you are effectively locking into using this |
7 specific hash map implementation, and you would need to remove all calls to this function when you want to |
8 specific hash map implementation, and you would need to remove all calls to this function when you want to |
8 exchange the concrete map implementation with something different. |
9 exchange the concrete map implementation with something different. |
9 |
10 |