Skip to content

Commit

Permalink
ENH: Improve DICOM reading performance
Browse files Browse the repository at this point in the history
- Improve tag caching performance. There were unnecessary database queries due to looking up cache entries twice and looking up SOP instance UID for file. Also reduced some code duplication by factoring out reading of DICOM tags from files into a new helper function (readValueFromFile).
- Add API to get first file or instance of a series.
- Cache DatabaseDirectory to avoid recomputing it each time a file path is converted between relative and absolute.
  • Loading branch information
lassoan authored and jcfr committed Apr 8, 2021
1 parent 404bf97 commit 5be81f2
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 164 deletions.
Loading

0 comments on commit 5be81f2

Please sign in to comment.