# HG changeset patch # User alfadur # Date 1539904790 -10800 # Node ID a1895019bb9482734ac6c9e7f127af334789eb57 # Parent c6e1769ac9aa0e81bf34af4988d59e60c68eb639 change draw_thick_line iteration order to benchmark winner diff -r c6e1769ac9aa -r a1895019bb94 rust/land2d/src/lib.rs --- a/rust/land2d/src/lib.rs Fri Oct 19 00:28:16 2018 +0200 +++ b/rust/land2d/src/lib.rs Fri Oct 19 02:19:50 2018 +0300 @@ -225,9 +225,9 @@ pub fn draw_thick_line(&mut self, from: Point, to: Point, radius: i32, value: T) -> usize { let mut result = 0; - for point in LinePoints::new(from, to) { - for vector in ArcPoints::new(radius) { - for delta in EquidistantPoints::new(vector) { + for vector in ArcPoints::new(radius) { + for delta in EquidistantPoints::new(vector) { + for point in LinePoints::new(from, to) { self.map_point(point + delta, |p| { if *p != value { *p = value;