encyclopegia.org

Interning (computer science)

In computer science, interning is re-using objects of equal value on-demand instead of creating new objects.[src] This creational pattern is frequently used for numbers and strings in different programming languages.[src] In many object-oriented languages such as Python, even primitive types such as integer numbers are objects.[src] To avoid the overhead of constructing a large number of integer objects, these objects get reused through interning.[src] For interning to work, the interned objects must be immutable, since state is shared between multiple variables.[src] String interning is a common application of interning, where many strings with identical values are needed in the same program.[src]

In computer science, interning is re-using objects of equal value on-demand instead of creating new objects.[src] This creational pattern is frequently used for numbers and strings in different programming languages.[src] In many object-oriented languages such as Python, even primitive types such as integer numbers are objects.[src] To avoid the overhead of constructing a large number of integer objects, these objects get reused through interning.[src] For interning to work, the interned objects must be immutable, since state is shared between multiple variables.[src] String interning is a common application of interning, where many strings with identical values are needed in the same program.[src]

12 sentences · 12 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Interning (computer science)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/interning-computer-science. Accessed 28 November 2026.

Chicago

"Interning (computer science)." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/interning-computer-science.

APA

encyclopegia.org. (2025). Interning (computer science). Retrieved November 28, 2026, from https://encyclopegia.org/wiki/interning-computer-science

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1305341611 · 0.5 · snapshot enwiki-001305341611

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.