defaultcapacity

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OfSearch

func OfSearch(length int) int

func OfSplits

func OfSplits(wholeTextLength int, limits int) int

OfSplits returns max as 100

func Predictive added in v0.4.0

func Predictive(
	possibleLen int,
	multiplier float64,
	additionalCap int,
) int

Predictive Result must be positive possibleLen * multiplier + additionalCap.

Less than zero yields additionalCap

func PredictiveDefault added in v0.4.1

func PredictiveDefault(possibleLen int) int

PredictiveDefault Result must be positive possibleLen * multiplier + constants.ArbitraryCapacity50.

Less than zero yields constants.ArbitraryCapacity50

func PredictiveFiftyPercentIncrement added in v0.4.0

func PredictiveFiftyPercentIncrement(possibleLen int, additionalCap int) int

PredictiveFiftyPercentIncrement Result must be positive possibleLen * multiplier + additionalCap.

Less than zero yields additionalCap

Types

This section is empty.

Jump to

Keyboard shortcuts

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