olddiff

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrElementNotFound = errors.New("ldiff: element not found")

Functions

func New

func New(divideFactor, compareThreshold int) ldiff.Diff

New creates precalculated Diff container

divideFactor - means how many hashes you want to ask for once

it must be 2 or greater
normal value usually between 4 and 64

compareThreshold - means the maximum count of elements remote diff will send directly

if elements under range will be more - remote diff will send only hash
it must be 1 or greater
normal value between 8 and 64

Less threshold and divideFactor - less traffic but more requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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