From e8845badf470c4e61bd0b4bde9121c5e4a851203 Mon Sep 17 00:00:00 2001 From: Nilstrieb Date: Fri, 5 Mar 2021 18:11:15 +0100 Subject: [PATCH] optimize it lmao --- Cargo.toml | 3 +++ src/main.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1406c0f..19dc5e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,6 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] + +[profile.dev] +opt-level = 3 diff --git a/src/main.rs b/src/main.rs index 7b3f186..9078f89 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use mandelbrot_set::Config; fn main() { - let config = Config::new(1, 4, 200, 100.0); + let config = Config::new(1, 4, 1000, 100.0); match mandelbrot_set::run(config) { Ok(s) => println!("{}", s),