Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PERF: improve DCMTKFileReader::CanReadFile perf #50

Conversation

ihnorton
Copy link
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
Collaborator

itkrobot commented Jun 4, 2018

Can one of the admins verify this patch?

2 similar comments
@itkrobot
Copy link
Collaborator

itkrobot commented Jun 4, 2018

Can one of the admins verify this patch?

@itkrobot
Copy link
Collaborator

itkrobot commented Jun 4, 2018

Can one of the admins verify this patch?

@ihnorton
Copy link
Contributor Author

ihnorton commented Jun 4, 2018

@thewtex
Copy link
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
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
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
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