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 committed Apr 8, 2021
1 parent 7622d09 commit f758191
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 351 deletions.
Loading

0 comments on commit f758191

Please sign in to comment.