RSSAmplifier

Artem Krylysov · Dec 12, 2018

String interning in Go

0
Sign in to vote or save

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…

Read on artem.krylysov.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.