MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / GetExpressionSlice

Function GetExpressionSlice

pkg/sql/ast/pool.go:753–757  ·  view source on GitHub ↗

GetExpressionSlice gets a slice of Expression from the pool

()

Source from the content-addressed store, hash-verified

751
752// GetExpressionSlice gets a slice of Expression from the pool
753func GetExpressionSlice() *[]Expression {
754 slice := exprSlicePool.Get().(*[]Expression)
755 *slice = (*slice)[:0]
756 return slice
757}
758
759// PutExpressionSlice returns a slice of Expression to the pool
760func PutExpressionSlice(slice *[]Expression) {

Callers 3

TestExpressionSlicePoolFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 3

TestExpressionSlicePoolFunction · 0.68