rust-rocksdb / rust-rocksdb/rust-rocksdb
Portable build that support cpus older than Intel Haswell
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.2k
- Forks
- 874
- PR merge metrics
- No merged PRs in 30d
Description
CPU older than Intel Haswell (e.g. sandy bridge and ivy bridge) doesn't have avx2. Currently rust-rocksdb doesn't provide an option to compile it without avx2. rocksdb itself has a PORTABLE option in cmake, so passing a PORTABLE flag to it will be make a portable build: https://github.com/facebook/rocksdb/blob/e3169e3ea8762d2f34880742106858a23c8dc8b7/CMakeLists.txt#L222
Reference: parity's fork has this: https://github.com/paritytech/rust-rocksdb/blob/6e099ebea51e5b5adb33405310504c8582649b34/rocksdb-sys/build.rs#L52
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with rocksdb-sys/build.rs and compare its build configuration with the referenced parity fork. Check how RocksDB's CMakeLists.txt handles the PORTABLE option, then verify that a portable build works on CPUs older than Haswell without AVX2 requirements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, rust
- Domain
- build-system, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100