Show HN: A concurrent thread-safe hash map implemented in C++
1–10 of 11 posts
Re: Show HN: A concurrent thread-safe hash map implemented in C++
#2Re: Show HN: A concurrent thread-safe hash map implemented in C++
#3Curious if there are any tests.
Re: Show HN: A concurrent thread-safe hash map implemented in C++
#4Is it really nessecary to allocate all of the hash buckets up front? Why not initialize them to null and then allocate them as you need?
Why not use some kind of managed container like std vector to store the hash buckets? This removes the need to do explicit memory management.
Why not use std forward_list instead of rolling your own linked list? Again, this will reduce the amount of code and save you from having to do manual memory management
Re: Show HN: A concurrent thread-safe hash map implemented in C++
#5A few issues with this implementation: Is it really nessecary to allocate all of the hash buckets up front? Why not initialize them to null and then allocate them as you need? Why not use some kind of managed container like std vector to store the hash buckets? This removes the need to do explicit memory management. Why not use std forward_list instead of rolling your own linked list? Again, this will reduce the amou…
Re: Show HN: A concurrent thread-safe hash map implemented in C++
#6Re: Show HN: A concurrent thread-safe hash map implemented in C++
#7Re: Show HN: A concurrent thread-safe hash map implemented in C++
#8Re: Show HN: A concurrent thread-safe hash map implemented in C++
#9I feel that using a linked list as the underlying structure combined with fine grained locking is the wrong direction to go. What is the scenario in which I would use this collection over an unordered_map and some locking scheme? A linked list is a very (very very) poor performer and I would only use a linked list for implementing a collection which is synchronized based on CAS operations instead of locking. Since yo…
Re: Show HN: A concurrent thread-safe hash map implemented in C++
#10this doesnt work for collisions