-
Notifications
You must be signed in to change notification settings - Fork 182
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
Optimisations for slow dataset transfers on Windows #620
Comments
Have you tried increasing AE.maximum_pdu_size? Or setting it to Have you tried comparing it against something like DCMTK's There was also this similar issue on Windows that might be related. I just ran test 5 in the benchmarking script, which should be similar to the tutorial code, on the 2.1 MB RTImageStorage dataset and it took 209 s to transfer 2.1 GB, which means your dataset should take about 8 s. For comparison, test 6 which uses an unlimited PDU size took about 45 s for all 2.1 GB. That's on Ubuntu, though. |
DCMTK (with max PDU as default or max) is instant (<<0.5 sec, timed by hand...) for the same (80MB) file. I wonder if we can further reduce the time and approach DCMTKs performance. |
I'd take a look at the suggestion towards the bottom of the linked issue about changing Window's timer resolution as well. |
Ok wow. setting the time resolution to 1ms made a huge difference! To be safe, I set the timer resolution to 1 ms @ EVT_ACCEPTED, and unset it @ EVT_RELEASED. Essentially what I'm doing:
What do you think? Thanks again. |
Yup that seems pretty good. I've been thinking I should probably set that automatically when on Windows so users don't have to worry about it. Maybe also include |
Thank you for your help and contributions! |
Describe the bug
Large RT Dose (80MB) takes about 1 minute to get stored. Not sure where bottle neck is exactly but this line is printed right away:
D: pydicom.read_dataset() TransferSyntax="Little Endian Implicit"
Then we wait.... a minute later this line and the file transfer is complete shortly after (almost instantaneously):
I: Received Store Request
So things work... Just very slowly. Have tested CTs, RPs and RSs (images, plans and structures) and those are all lightning fast... of course they are also much smaller.
Steps To Reproduce
Using tutorial example from here.
Have tried pynetdicom versions 1.4.1 and 1.5.7 with same behavior.
To rule out network issues, the DICOM exporter (clinical software) and pynetdicom SCP are both sitting on the same PC (in otherwords, AE IP is localhost).
My environment
The text was updated successfully, but these errors were encountered: