rust-rocksdb / rust-rocksdb/rust-rocksdb

Portable build that support cpus older than Intel Haswell

Open
#363 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.