add ***very important*** comment

This commit is contained in:
Simon Gardling 2022-02-28 12:37:51 -05:00
parent 92bc183dbd
commit 5c84a0b4d2

View File

@ -182,7 +182,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);
let i_option = x_data.iter().position(|&r| r == x); // Optimize this later, this could be done much much better
if let Some(i) = i_option {
back_cache[i]