zx0-go

command module
v0.0.0-...-004e7fe Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

README

zx0-go

zx0-go is a multi-thread implementation of the ZX0 data compressor in Go.

Requirements

To run this compressor, you must have installed Go 1.23 or later.

Usage

To compress a file such as "Cobra.scr", use the command-line compressor as follows:

go run main.go Cobra.scr

This compressor uses 4 threads by default. You can use parameter "-p" to specify a different number of threads, for instance:

go run main.go -p=2 Cobra.scr

If number of threads is set to 0 or negative, the compressor will use the maximum number of threads equal to count of available CPUs in the system.

All other parameters work exactly like the original version. Check the official ZX0 page for further details.

Building

To build the compressor binary, you can use the following command:

go build -o ./bin/zx0 .

or use the makefile:

make build

output binary will be placed in the "bin" directory.

License

The Go implementation of ZX0 was authored by Artur 'Mojzesh' Torun and it's available under the "BSD-3" license.

  • ZX0 - The original version of ZX0, by Einar Saukas.

  • ZX0-Kotlin - A similar multi-thread data compressor for ZX0 in Kotlin, by the same author.

  • ZX5-Kotlin - A similar multi-thread data compressor for ZX5 in Kotlin, by the same author.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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