Documentation
¶
Overview ¶
conch collects file info from the "testfiles" directory and concurrently processes the files by decompressing the contents and then printing the data or related error.
The "width" of concurrency is set by the constant "width". Parallelism is scheduled properly regardless of CPUs available, and the processing will be serial if only one CPU is available. Width, in this case, helps control the maximum available goroutines to limit the usage of RAM (see heap profile results).
Available flags: -slow slow processing to clarify behavior -width int set concurrency width (default 8)
For convenience, a sub-command has been provided (conchtestdata) which will generate the required files for processing. More specifically, run `conchtestdata` before running `conch`.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
conchtestdata
command
conchtestdata generates files for processing by the conch0 command.
|
conchtestdata generates files for processing by the conch0 command. |
Click to show internal directories.
Click to hide internal directories.