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.
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.