From 1a0580e817a0f60505e38c8dd29f9e4eeeae0558 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 23 Sep 2023 17:57:20 +0200 Subject: indexamajig: Re-use the image data arrays We noticed that constant freeing and re-allocating the (potentially quite large) arrays resulted in much lower performance. Since we know that all images have the same data layout, we can safely re-use the arrays. This gives a large speedup. --- src/crystfel_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crystfel_gui.c') diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 41546bcd..d0fab3b1 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -215,7 +215,7 @@ void update_imageview(struct crystfelproject *proj) image = image_read(proj->dtempl, proj->filenames[proj->cur_frame], proj->events[proj->cur_frame], - 0, 0); + 0, 0, NULL); } else { STATUS("Image data file not present.\n"); image = NULL; -- cgit v1.2.3