Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to reduce oxrocksdb-sys debug build size? #887

Open
hoijui opened this issue Jun 3, 2024 · 1 comment
Open

Is there a way to reduce oxrocksdb-sys debug build size? #887

hoijui opened this issue Jun 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hoijui
Copy link

hoijui commented Jun 3, 2024

Debug builds of oxrocksdb-sys (1.5GB) and liboxrocksdb_sys (760MB) are HUGE!
a few build iterations/versions, and my small projects target/ dir grows to 20GB.
It also takes long to compile.

Any remedy for that?

@hoijui hoijui added the bug Something isn't working label Jun 3, 2024
@Tpt
Copy link
Collaborator

Tpt commented Jun 3, 2024

Yes, it's very painful. Multiple ways to mitigate that:

  1. The most efficient: disable RocksDB if you don't need it. It is possible in the 0.4 alpha versions by disabling the "rocksdb" cargo feature:
oxigraph = { version = "0.4.0-alpha.7", default-features = false }
  1. Edit cargo profiles to avoid generating debug information

  2. To mitigate slow builds. Use a Rust/C/C++ cache system like sccache. I use it on my laptop and it made the rebuilds way faster if all Rust, C and C++ caching are enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants