Transport.SetBatchSize

Method

Visual Basic

Not supported.

C#

public virtual void SetBatchSize (
    uint numBytes );

Purpose

Enable outbound batching of data from IPM, and set the batch size (in bytes).

Remarks

This type of batching is available only in the IPM library. It is not available in the standard (daemon-based) Rendezvous library, and this call throws an error exception.

When the batch size is greater than zero, IPM transfers data to the network in batches. This option can increase throughput, at the cost of higher latency.

When the batch size is zero, IPM transfers data to the network immediately, for lowest latency.

If you do not explicitly set the batch size using this call, then the default behavior disables outbound batching.

Note 

Contraindications

These conditions characterize situations in which we do not recommend batching:

Data latency is not acceptable.
Batch behavior does not produce measurable improvements in the performance of your application.

Parameter

Description

numBytes

Set the batch size (in bytes).

Zero is a special value, which disables batching for the transport.