Skip to content

Files

Latest commit

97f3232 · Mar 13, 2016

History

History

interned-string

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 12, 2016
Mar 13, 2016
Feb 29, 2016

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.