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

Thin out dependencies some #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

thomcc
Copy link

@thomcc thomcc commented Feb 1, 2025

This PR removes unused dependencies and makes the num-complex dependency optional (Hopefully I got everything).

@thomcc
Copy link
Author

thomcc commented Feb 2, 2025

Note: Pretty sure that this is a breaking API change, since someone with default-features=false who used the num-complex functionality would break.

Given that, perhaps it's better to not have it be on by default. The only times I've ever wanted complex number SIMD were for FFTs or fractal rendering, neither of which seem that common to me. Your call though, obviously.

@@ -136,6 +136,7 @@ impl Default for Arch {
include!(concat!(env!("OUT_DIR"), "/x86_64_asm.rs"));

#[cfg(test)]
#[cfg_attr(not(feature = "complex"), allow(unused_imports))]
Copy link
Author

Choose a reason for hiding this comment

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

I'm being somewhat lazy here but without the complex stuff there were a lot of imports that became unused (in this test module in particular).

@sarah-quinones
Copy link
Owner

is there a notable benefit to making complex support optional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants