Skip to content

Latest commit

 

History

History

interned-string

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Interned String Type

Interned strings are stored in a pool, ensuring that a copy of any particular string is stored only once, and all further attempts to store the same string will return the existing copy's address.

Interned strings offer memory savings and faster exact comparisons compared to normal strings, at the expense of greater CPU usage when they are first created.

Structurally they share a similar implementation to the normal String type.

Note that the number of strings that can be interned in total is constrained by the arena size. See the string pool documentation for more information.