From 43bfc27017d1167cb8ae1bf72eaa7d4f1e9dc912 Mon Sep 17 00:00:00 2001 From: Josh Cardenzana Date: Thu, 8 Nov 2018 21:19:10 +0100 Subject: [PATCH] Apply some minor speed ups preventing initializing GGti objects (#2713) --- src/ctfindvar/ctfindvar.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ctfindvar/ctfindvar.cpp b/src/ctfindvar/ctfindvar.cpp index f40e652..0b7ede1 100644 --- a/src/ctfindvar/ctfindvar.cpp +++ b/src/ctfindvar/ctfindvar.cpp @@ -510,7 +510,7 @@ void ctfindvar::fill_alpha_vector(const int& pix_number, GCTAInstDir instdir = obs->pointing().instdir(pix_dir); // Extract the good time intervals of the observation - GGti obs_gti = obs->gti(); + const GGti& obs_gti(obs->gti()); // Loop over all time bins for (int j=0; j time) { map_index = i; break; } -- libgit2 0.21.4