MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / internValue

Method internValue

buffer.go:737–742  ·  view source on GitHub ↗

internValue interns a string value for a specific column if interning is enabled

(col int, value string)

Source from the content-addressed store, hash-verified

735
736// internValue interns a string value for a specific column if interning is enabled
737func (b *Buffer) internValue(col int, value string) string {
738 if col < len(b.internCols) && b.internCols[col] && b.interners[col] != nil {
739 return b.interners[col].intern(value)
740 }
741 return value
742}
743
744// getInterningStats returns statistics about string interning usage
745func (b *Buffer) getInterningStats() map[string]interface{} {

Callers 1

TestInternValueFunction · 0.80

Calls 1

internMethod · 0.80

Tested by 1

TestInternValueFunction · 0.64