Documentation
¶
Index ¶
Constants ¶
View Source
const BufferSize = 1024 * 1024
View Source
const SegmentSize = 32 * BufferSize
Smaller value may increase the overhead of synchornizing multiple works. Larger value may be less efficient for smaller images. The default value gives good results for the lima default Ubuntu image.
View Source
const Workers = 8
For best I/O throughput we want to have enough in-flight requests, regardless of number of cores. For best decompression we want to use one worker per core, but too many workers is less effective. The default value gives good results with lima default Ubuntu image.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
type Options ¶
type Options struct {
// SegmentSize in bytes. Must be aligned to BufferSize. If not set, use the
// default value (32 MiB).
SegmentSize int64
// BufferSize in bytes. If not set, use the default value (1 MiB).
BufferSize int
// Workers is the number of goroutines copying buffers in parallel. If not set
// use the default value (8).
Workers int
}
Click to show internal directories.
Click to hide internal directories.