sjoerdk / dicomtrolley

Retrieve medical images via WADO, MINT, RAD69 and DICOM-QR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exponential memory use for xml parsing using pydantic=>1.9

sjoerdk opened this issue · comments

  • dicomtrolley version:1.2.0
  • Python version: 3.7

Description

Calling parse_mint_studies_response (https://github.com/sjoerdk/dicomtrolley/blob/master/dicomtrolley/mint.py#L300) on a normal sized mint response will take exponential time and memory.

This is only the case when pydantic 1.9 is used. for 1.8 there is no issue.

Fixed by latest commit