gitlab.com/evatix-go/core@v1.3.55/defaultcapacity/PredictiveDefault.go (about)

     1  package defaultcapacity
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/constants"
     5  	"gitlab.com/evatix-go/core/constants/percentconst"
     6  )
     7  
     8  // PredictiveDefault Result must be positive possibleLen * multiplier + constants.ArbitraryCapacity50.
     9  //
    10  // Less than zero yields constants.ArbitraryCapacity50
    11  func PredictiveDefault(possibleLen int) int {
    12  	return Predictive(
    13  		possibleLen,
    14  		percentconst.FiftyPercentIncrement,
    15  		constants.ArbitraryCapacity30)
    16  }