--- a/ExternalStream.st Wed Mar 13 23:32:39 2019 +0100
+++ b/ExternalStream.st Wed Mar 13 23:33:22 2019 +0100
@@ -1898,7 +1898,8 @@
!ExternalStream class methodsFor:'defaults'!
bufferSizeForBulkCopy
- "return the size of buffer used when copying big files/buld data from one stream to another.
+ "return the size of buffer used when copying big files/bulk data
+ from one stream to another.
Due to a bug on older Windows systems, the default used
is chosen very conservatively, as the copy used to fail with big buffers.
However, modern Windows systems seem to not suffer from that bug,
@@ -1910,17 +1911,14 @@
DefaultCopyBufferSize notNil ifTrue:[^ DefaultCopyBufferSize].
- OperatingSystem isMSDOSlike ifTrue:[
- OperatingSystem isWin7Like ifTrue:[
- ^ 64*1024
- ] ifFalse:[
- "/ mhmh - NT hangs, when copying bigger blocks to a network drive - why ?
- ^ 1 * 1024.
- ].
+ (OperatingSystem isMSWINDOWSlike and:[OperatingSystem isWin7Like not]) ifTrue:[
+ "/ mhmh - NT hangs, when copying bigger blocks to a network drive - why ?
+ ^ 1 * 1024.
].
- ^ 32 * 1024.
+ ^ 64 * 1024.
"Created: / 13-03-2019 / 16:49:17 / Stefan Vogel"
+ "Modified: / 13-03-2019 / 23:19:43 / Stefan Vogel"
!
defaultCopyBufferSize:anInteger