While investigating the performance of dgate.exe I found that the speed is limited by the current buffer size in pdata.cxx, which is set to 4096 bytes. By enlarging this BlockSize in PDataTF::Write() to e.g. 262144 I observed a speedup of approximately 40% on a local DICOM server for a test case of 680 slices.
I tried to find some references for the optimal buffer size and found this link: https://stackoverflow.com/ques…ecv-in-the-socket-library, where 256kB is advised.
Do you think it is a good idea to increase the buffer size in a future version?
Lennert.