This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
String interning is a technique of storing only one copy of each unique string in memory. It can significantly reduce memory usage for applications that store many duplicated strings. The built-in string is represented internally as a structure containing two fields. Data is a pointer to the string data and Len is a length of the string: type StringHeader struct { Data uintptr Len int } In Go…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.