# HG changeset patch # User Alain Mazy # Date 1792482669 -7200 # Node ID 745b6573db7145957d4c223a157f39968267c9cf # Parent b7a765bb2812e366fcbba6c19333f1921568aed9 Fixed performance regression when a plugin is accessing only the DICOM tags of a file diff -r b7a765bb2812 -r 745b6573db71 NEWS --- a/NEWS Tue Oct 20 09:48:12 2026 +0200 +++ b/NEWS Tue Oct 20 09:51:09 2026 +0200 @@ -40,6 +40,8 @@ * Fixed preview of YBR_FULL images encoded in JPEG-LS (https://discourse.orthanc-server.org/t/orthanc-preview-does-not-show-correctly/6488) * Reduced the number of SQL queries when accessing /instances/../tags +* Fixed performance regression when a plugin is accessing only the DICOM tags of a file + (https://discourse.orthanc-server.org/t/1-13-0-orthancpluginloaddicominstance-reads-the-whole-dicom-file-in-emptypixeldata-and-untilpixeldata-modes/6489) * Fix use of the static runtime under Visual Studio (/MT), which broke in 1.12.10 * New CMake options: - "THIRD_PARTY_DOWNLOADS_ROOT_URL" to specify another webserver to downloads the third-parties from. diff -r b7a765bb2812 -r 745b6573db71 OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Tue Oct 20 09:48:12 2026 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Tue Oct 20 09:51:09 2026 +0200 @@ -5166,7 +5166,7 @@ { PImpl::ServerContextReference lock(*pimpl_); - std::unique_ptr loaded(lock.GetContext().ReadParsedDicom(params.instanceId)); + std::unique_ptr loaded(lock.GetContext().ReadDicomUntilPixelData(params.instanceId)); parsed.reset(loaded->Clone()); }