# HG changeset patch # User Sebastien Jodogne # Date 1474009048 -7200 # Node ID 1c8aaaea72b2b15719fcc22cb6ab5d0b7e12d24f # Parent 99b45a963bcf8325ae2f5136afa0043d1027bd53 runtime assertions diff -r 99b45a963bcf -r 1c8aaaea72b2 Sphinx/source/faq/compiling.rst --- a/Sphinx/source/faq/compiling.rst Fri Aug 19 08:59:32 2016 +0200 +++ b/Sphinx/source/faq/compiling.rst Fri Sep 16 08:57:28 2016 +0200 @@ -27,6 +27,17 @@ `_ inside the source package. +Performance warning +------------------- + +If performance is important to you, make sure to add the option +``-DCMAKE_BUILD_TYPE=Release`` when invoking ``cmake``. Indeed, by +default, `run-time debug assertions +`_ +are enabled, which can seriously impact performance, especially if +your Orthanc server stores a lot of DICOM instances. + + Please explain the build infrastructure --------------------------------------- diff -r 99b45a963bcf -r 1c8aaaea72b2 Sphinx/source/faq/troubleshooting.rst --- a/Sphinx/source/faq/troubleshooting.rst Fri Aug 19 08:59:32 2016 +0200 +++ b/Sphinx/source/faq/troubleshooting.rst Fri Sep 16 08:57:28 2016 +0200 @@ -29,6 +29,20 @@ Performance issues ------------------ +* **Run-time debug assertions**: If performance is important to you, + make sure to add the option ``-DCMAKE_BUILD_TYPE=Release`` when + invoking ``cmake`` while :ref:`compiling Orthanc + `. Indeed, by default, `run-time debug assertions + `_ + are enabled, which can seriously impact performance, especially if + your Orthanc server stores a lot of DICOM instances. + + Note that the `official Docker images + `__ of Orthanc <= 1.0.0 + were not compiled in ``Release`` mode. As a consequence, to improve + performance, make sure to use either the mainline version of the + container, or versions more recent than ``jodogne/orthanc:1.1.0``. + * **Orthanc Explorer is slow under Windows on the localhost**: - Favor ``127.0.0.1`` instead of ``localhost`` when specifying the