Dandandan commented on a change in pull request #976:
URL: https://github.com/apache/arrow-datafusion/pull/976#discussion_r703178637
##########
File path: docs/user-guide/src/library.md
##########
@@ -27,3 +29,32 @@ To get started, add the following to your `Cargo.toml` file:
[dependencies]
datafusion = "5.1.0"
```
+
+## Optimized Configuration
+
+For an optimized build several steps are required. First, use the following in
your `Cargo.toml`:
+
+```toml
+[dependencies]
+datafusion = { git = "https://github.com/apache/arrow-datafusion.git",
features = ["simd"]}
+tokio = { version = "^1.0", features = ["macros", "rt", "rt-multi-thread"] }
+snmalloc-rs = {version = "0.2", features= ["cache-friendly"]}
+num_cpus = "1.0"
+
+[profile.release]
+lto = true
+codegen-units = 1
+```
+
+Then, in your `main.rs.` update the memory allocator with the below after your
imports:
+
+```rust
+#[global_allocator]
+static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
+```
+
+Finally, in order to build with these optimizations `cargo nightly` is
required. Based on the instruction
Review comment:
Nightly is only required for using `simd`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]