diff options
author | Thomas White <taw@physics.org> | 2023-09-23 17:57:20 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-09-23 19:37:40 +0200 |
commit | 1a0580e817a0f60505e38c8dd29f9e4eeeae0558 (patch) | |
tree | 4cb92f99fbf100bfab226ea94012da262d4bda77 /src/crystfel_gui.c | |
parent | cee7ee0b8a4cafa1f8f3c67518f86c895520f5a6 (diff) |
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.
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |