Documentation
¶
Overview ¶
Package delta provides binary diff generation and application for package files. It wraps the bsdiff algorithm (github.com/totallygamerjet/bsdiff) with repository-aware helpers for generating and serving package deltas.
A delta is a compact binary patch that transforms one version of a package into another. Clients that already have version N can download a delta instead of the full package for version N+1, saving significant bandwidth.
Example savings: a 50MB browser package update may produce a 2-5MB delta.
Index ¶
Constants ¶
const MaxInputSize = 64 << 20
MaxInputSize is the largest old/new input (bytes) Generate accepts. bsdiff needs several times the input size in memory, so this bounds worst-case use.
Variables ¶
var (
ErrInputTooLarge = errors.New("input too large for delta generation")
)
Sentinel errors for delta operations.
Functions ¶
Types ¶
This section is empty.