Comments (3)
So the map was built. I'd say your key file is too large (but you don't know the size). Why do you want to load the entire file in memory?
from sux.
I'm sorry. I was a bit misleading. I should have said I was trying to query such an MPHF. You are right that the MPFH building tool claims success, and recsplit_load
gives an abort. Maybe the map produced by the build tool is bad? Maybe the query tool processes keys in a less memory efficient way than the build tool? I'm not familiar enough with the project to say why, just report the abort. I feel that the list of keys I used is agnostic to the bug, so long as the list is large. If you are unable to reproduce, I am happy to send along my list of keys to assist diagnosis.
Thank you!
Here is the full run:
$ wc -l test.keys
1073741823 test.keys
$ bin/recsplit_dump_8 test.keys 100 test.mphf
Building...
Elias-Fano cumul sizes: 7.469788 bits/bucket
Elias-Fano cumul bits: 6.376042 bits/bucket
Elias-Fano cumul sizes: 0.074698 bits/key
Elias-Fano cumul bits: 0.063760 bits/key
Rice-Golomb descriptors: 1.656336 bits/key
Total bits: 1.794794 bits/key
Construction time: 2078.431 s, 1936 ns/key
$ bin/recsplit_load_8 test.keys test.mphf
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
from sux.
from sux.
Related Issues (11)
- Are they any bindings for Golang? HOT 6
- Creating select_upper and selectz_upper in EliasFano.hpp HOT 7
- RecSplit MPHF mapping HOT 4
- Duplicate keys in RecSplit HOT 1
- Lookup semantics HOT 5
- Licensing HOT 2
- Making RecSplit MPHF thread safe HOT 1
- Segmentation fault in RecSplit HOT 2
- Please add topics to the repository HOT 1
- Improve description HOT 2
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 sux.