Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ overflow-checks = false
[profile.release]
opt-level = 3

[features]
simd = []

[dependencies]
rayon = "1.7.0"
hashbrown = "0.14.0"
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Brute-force search tool for short Python expressions (for code golf).

Edit the search parameters at the top of `src/params.rs`, then run `cargo run --release`.

If your input/goal vectors have length ≤8, you can try `cargo +nightly run --release --features simd`.

In `main.rs` you can edit the file used as the params module (default `#[path = "params.rs"]`). This way you can manage multiple configurations (e.g. make a `params-fizzbuzz.rs`).

## Example
Expand Down
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#![cfg_attr(feature = "simd", feature(portable_simd))]

pub mod expr;
pub mod operator;
pub mod vec;

#[path = "params.rs"]
pub mod params;

#[cfg_attr(all(feature = "simd", feature = "portable_simd"), path = "vec_simd.rs")]
#[cfg_attr(not(feature = "simd"), path = "vec.rs")]
pub mod vec;

use expr::{Expr, NonNullExpr, VarCount};
use operator::*;
use params::*;
Expand Down
172 changes: 0 additions & 172 deletions src/vec_simd.rs

This file was deleted.