You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow better control of memory usage by limiting buffer chunk sizes:
The WriteStream.setWriteQueueMaxSize() method to set the write queue size may be of limited utility when we have no control of the block size of the Buffer objects that are submitted to the WriteStream. To solve this, this version adds a WriteToInputStream.setMaxChunkSize(int) method that allows setting a maximum size for the buffers in the queue. With that limit set, incoming buffers will be split if they are larger than the specified size, so that the maximum memory use of the stream should no exceed QueueMaxSize * MaxChunkSize (excluding overhead).