fermi-lat / Likelihood

BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

add check for m_save_map and slight formatting fix #100

Closed dagorym closed 3 years ago

dagorym commented 3 years ago

This adds a check against the m_save_map member variable in the SourceMap class setSource() method to properly prevent reloading of data for fixed map sources that are no longer needed. This significantly reduces the memory used by the fitting (in the test harness it reduced the map memory allocated from 2.1 GB to 166 MB and total usage from 2.8 GB to 740 MB).

I also cleaned up the formatting of the if() statements just a bit.