Comments (3)
there is a small bug in the code that reads keys.txt , it should check of.fail() before adding the element to the map. It does not affect the validity of the reproducer.
from robin-map.
Than you very much for the report. That's a quite critical bug. The commit I made should fix the issue.
The problem came from the too high number of collisions causing the bucket_entry::m_dist_from_ideal_bucket
variable to overflow (distance higher than 32767) . I fixed the issue but I really recommend to use a better hash function than std::hash<T>
for integers with GCC and Clang as they use a simple identity function which can cause some problems with hash tables using open-addressing. MSVC uses a more robust hash for integer which explain why it was working on Windows.
from robin-map.
Thanks for fixing it. As you say, it is fairly critical and it's going to be sort of random
from robin-map.
Related Issues (20)
- serialization using boost HOT 1
- CMake exports using incorrect name HOT 6
- Question: How to use pre-calculated hash to insert an entry into robin_map? HOT 1
- how to write range based for HOT 1
- How to put this into shared memory? HOT 3
- release the latest version to conda-forge? HOT 2
- 1.0.0 fails to build with GCC 12 on Fedora HOT 9
- Do you know how to put robin_map into shared_memory? HOT 1
- Hash Map Insert Stuck in an infinite loop HOT 53
- Broken on Conan HOT 1
- Does robin_map is thread safe?
- CL.exe crash
- find/insert return iterators with read-only second element HOT 3
- aligned_storage is deprecated by C++23 HOT 3
- A C2028 error may be generated when using the c++ 20 module.
- Disable install rule if robin-map is a subproject HOT 3
- Q: Is there a C wrapper? HOT 1
- Robin_map:find() causing segmentation faults HOT 8
- robin_hash crash HOT 1
- CMake: not exporting if IS_SUBPROJECT breaks use through FetchContent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robin-map.