Skip to content

PERF: improve DCMTKFileReader::CanReadFile perf#50

Closed
ihnorton wants to merge 1 commit intoInsightSoftwareConsortium:masterfrom
ihnorton:dcmtk_canreadfile_perf
Closed

PERF: improve DCMTKFileReader::CanReadFile perf#50
ihnorton wants to merge 1 commit intoInsightSoftwareConsortium:masterfrom
ihnorton:dcmtk_canreadfile_perf

Conversation

@ihnorton
Copy link
Copy Markdown
Contributor

@ihnorton ihnorton commented Jun 4, 2018

Using DcmMetaInfo avoids loading full dataset into memory, which
can be very expensive for large files.
For example, in Slicer, DCMTK is one of the first ITK readers tested.
Without this change, attempting to read a multi-gigabyte NIfTI file
will hang for many minutes in the ::CanReadFile code path. With this
change, the test path completes in under 50ms.

Using DcmMetaInfo avoids loading full dataset into memory, which
can be very expensive for large files.
For example, in Slicer, DCMTK is one of the first ITK readers tested.
Without this change, attempting to read a multi-gigabyte NIfTI file
will hang for many minutes in the ::CanReadFile code path. With this
change, the test path completes in under 50ms.
@itkrobot
Copy link
Copy Markdown
Collaborator

itkrobot commented Jun 4, 2018

Can one of the admins verify this patch?

2 similar comments
@itkrobot
Copy link
Copy Markdown
Collaborator

itkrobot commented Jun 4, 2018

Can one of the admins verify this patch?

@itkrobot
Copy link
Copy Markdown
Collaborator

itkrobot commented Jun 4, 2018

Can one of the admins verify this patch?

@ihnorton
Copy link
Copy Markdown
Contributor Author

ihnorton commented Jun 4, 2018

@thewtex
Copy link
Copy Markdown
Member

thewtex commented Jun 6, 2018

@ihnorton an invite was sent to the InsightSoftwareConsortium GitHub Org for your account. This will prevent the itkrobot from asking lots of questions, ensure your PR's get automated builds, and avoid confusion 🙃 .

Since we have not finalized the transition to GitHub, I will push this to Gerrit and merge there.

@thewtex
Copy link
Copy Markdown
Member

thewtex commented Jun 6, 2018

Pushed here:

http://review.source.kitware.com/#/c/23508/

@thewtex thewtex closed this Jun 6, 2018
@ihnorton
Copy link
Copy Markdown
Contributor Author

ihnorton commented Jun 6, 2018

Thanks.

@ihnorton ihnorton deleted the dcmtk_canreadfile_perf branch June 6, 2018 18:39
@ihnorton ihnorton restored the dcmtk_canreadfile_perf branch August 8, 2018 19:59
@ihnorton ihnorton deleted the dcmtk_canreadfile_perf branch December 18, 2018 13:48
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
…rSTDArrayToCArray

STYLE: Prefer std::array to c-style arrays
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
ENH: allowing filename to be specified instead of providing images
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
…nusedVariableWarning

COMP: Remove unused variable
hjmjohnson pushed a commit that referenced this pull request Apr 25, 2026
ENH: allowing filename to be specified instead of providing images
hjmjohnson pushed a commit that referenced this pull request Apr 30, 2026
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 4, 2026
…PreferSTDArrayToCArray

STYLE: Prefer std::array to c-style arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants