From 7bbba155f10ce1344724ea00ca70c4d3bb469272 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 12 Jan 2023 23:59:46 +0100 Subject: parallelize PNG encoding This gives a massive speedup --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1859243..269d95c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,7 @@ fn main() -> Result<()> { let bar = ProgressBar::new(counter.tile_count().try_into().unwrap()) .with_style(progress_style.clone()); bar.set_prefix("Saving heat tiles"); - renderer::lazy_colorization(&counter, &target, |x| bar.inc(x.try_into().unwrap()))?; + renderer::lazy_colorization(counter, &target, |x| bar.inc(x.try_into().unwrap()))?; bar.finish(); } -- cgit v1.2.3