Dart.Ssh Namespace > Optimizations Class : BlockSize Property |
'Declaration <DefaultValueAttribute(65536)> Public Property BlockSize As Integer
'Usage Dim instance As Optimizations Dim value As Integer instance.BlockSize = value value = instance.BlockSize
[DefaultValue(65536)] public int BlockSize {get; set;}
[DefaultValue(65536)] public: __property int get_BlockSize(); public: __property void set_BlockSize( int value );
[DefaultValue(65536)] public: property int BlockSize { int get(); void set ( int value); }
The Progress event will be raised at the frequency set by this property. Set this property to a lower number to have the Progress event raised more frequently.
Reading and writing file operations are done 32768 bytes at a time, so for optimal perfomance the BlockSize property should be set using the following algorithm:
((ReadAheadBuffers + 1) / 2) * 32768
Note that setting this value below 32768 may result in a transfer speed decrease.