Skip to content

Conversation

@matthewmturner
Copy link
Contributor

Which issue does this PR close?

Closes #882 .

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@matthewmturner
Copy link
Contributor Author

@houqp @alamb @andygrove FYI took a first cut at this by adding to the library section of the user-guide. Let me know your thoughts.


```toml
[dependencies]
datafusion = { git = "https://github.com/apache/arrow-datafusion.git", features = ["simd"]}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
datafusion = { git = "https://github.com/apache/arrow-datafusion.git", features = ["simd"]}
datafusion = "5.0"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont need to keep the features = ["simd"]?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah you're right 👍 But probably we don't want people building from git, if not needed.

snmalloc-rs = {version = "0.2", features= ["cache-friendly"]}
num_cpus = "1.0"

[profile.release]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mention that using this will increase the build time considerably

static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
```

Finally, in order to build with these optimizations `cargo nightly` is required. Based on the instruction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nightly is only required for using simd

@houqp houqp merged commit 50cce1a into apache:master Sep 7, 2021
@houqp houqp added datafusion documentation Improvements or additions to documentation labels Nov 4, 2021
unkloud pushed a commit to unkloud/datafusion that referenced this pull request Mar 23, 2025
H0TB0X420 pushed a commit to H0TB0X420/datafusion that referenced this pull request Oct 7, 2025
* Fix small issues in pyproject.toml

* Update classifiers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documenting building with simd feature

3 participants