conch

command module
v0.0.0-...-f3bb67d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2018 License: MIT Imports: 11 Imported by: 0

README

conch

go get -u github.com/daved/conch/...

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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL