internValue interns a string value for a specific column if interning is enabled
(col int, value string)
| 735 | |
| 736 | // internValue interns a string value for a specific column if interning is enabled |
| 737 | func (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 |
| 745 | func (b *Buffer) getInterningStats() map[string]interface{} { |