Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerContext.cpp @ 5420:d37dff2c0028 am-new-cache
Optimized the MemoryStringCache to prevent loading the same file multiple times if multiple users request the same file at the same time
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 13 Nov 2023 17:01:59 +0100 |
parents | 16cbfefa15e9 |
children | c65e036d649b |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp Thu Nov 09 08:51:01 2023 +0100 +++ b/OrthancServer/Sources/ServerContext.cpp Mon Nov 13 17:01:59 2023 +0100 @@ -1078,7 +1078,7 @@ { StorageAccessor accessor(area_, storageCache_, GetMetricsRegistry()); - accessor.ReadStartRange(dicom, attachment.GetUuid(), FileContentType_Dicom, pixelDataOffset); + accessor.ReadStartRange(dicom, attachment, pixelDataOffset); } assert(dicom.size() == pixelDataOffset); @@ -1219,7 +1219,7 @@ StorageAccessor accessor(area_, storageCache_, GetMetricsRegistry()); - accessor.ReadStartRange(dicom, attachment.GetUuid(), attachment.GetContentType(), pixelDataOffset); + accessor.ReadStartRange(dicom, attachment, pixelDataOffset); assert(dicom.size() == pixelDataOffset); return true; // Success