fastcdc

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fastcdc provides the isolated v2-fastcdc chunker implementation.

v2-fastcdc is the default for fresh v1.5+ repositories, while upgraded repositories preserve their existing write-default policy unless changed.

Index

Constants

View Source
const (
	// Version is the persisted identifier for this chunker generation.
	Version = shared.Version("v2-fastcdc")

	// Tuning targets for the first v2-fastcdc implementation.
	//
	// Phase 5 comparison rule: keep target sizes aligned for fair behavior
	// comparisons while we validate implementation isolation.
	MinChunkSize = 32 * 1024
	AvgChunkSize = 64 * 1024
	MaxChunkSize = 128 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunker

type Chunker struct{}

func New

func New() Chunker

func (Chunker) ChunkFile

func (c Chunker) ChunkFile(filePath string) ([]shared.Result, error)

func (Chunker) Version

func (c Chunker) Version() shared.Version

Jump to

Keyboard shortcuts

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