diff --git a/include/extractor/raster_source.hpp b/include/extractor/raster_source.hpp index f426984a3f5..eebe6297993 100755 --- a/include/extractor/raster_source.hpp +++ b/include/extractor/raster_source.hpp @@ -145,6 +145,10 @@ class RasterContainer }; // << singletone >> RasterCache +// The instance of RasterContainer is created for every threads osrm-extract uses. +// To avoid multiple load of same file on each RasterContainer, +// The LoadedSources and LoadedSourcePaths are separated to RasterCache class +// and handled as the singletone pattern to avoid duplicate creation. class RasterCache { public: