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

Function newStringInterner

buffer.go:19–21  ·  view source on GitHub ↗

newStringInterner creates a new string interner

()

Source from the content-addressed store, hash-verified

17
18// newStringInterner creates a new string interner
19func newStringInterner() *stringInterner {
20 return &stringInterner{}
21}
22
23// intern returns a canonical version of the string, reducing memory usage
24func (si *stringInterner) intern(s string) string {

Callers 3

enableStringInterningMethod · 0.85
TestStringInternerFunction · 0.85
TestInternValueFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestStringInternerFunction · 0.68
TestInternValueFunction · 0.68