From 57e3b0c4ca4163186a89255e5b43dc3898919698 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 1 Mar 2022 10:55:38 -0500 Subject: [PATCH] comment --- src/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function.rs b/src/function.rs index 8838fe7..6118edd 100644 --- a/src/function.rs +++ b/src/function.rs @@ -121,7 +121,7 @@ impl Function { (1..=self.pixel_width) .map(|x| (x as f64 / resolution as f64) + min_x) .map(|x| { - let i_option = x_data.iter().position(|&r| r == x); // Optimize this later, this could be done much much better + let i_option = x_data.iter().position(|&r| r == x); // Optimize this later, this could be done much much better, but tbh it doesn't matter that much as the program is already super fast if let Some(i) = i_option { back_cache[i]