yenc

package module
v0.0.0-...-67fb6ab Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

README

go-yenc

A yenc encoder/decoder who wants to be the fastest. (except yencode) (see benchmarks)

Objective

The current objective is a single-threaded throughput of at least 10 MiB/s without causing a CPU-Meltdown or stealing too much RAM from Chrome.

I think we can safely say that we managed to hit this goal. Now it's time for the actual implementation. The details may change if a faster way occurs to me.

License

The code is Licensed under the MPL 2.0

Copyright (c) 2020-2021 Moritz Poldrack

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLimit

func GetLimit() int

Types

type Encoder

type Encoder struct {
	LineLength int
	BlockSize  int
	CRC        hash.Hash32
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) Write

func (e *Encoder) Write(slice []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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