---
title: "Discussion on \"Why a Single Emoji Quadruples Python String Memory\" | Hashnode"
description: "Discussion on \"Why a Single Emoji Quadruples Python String Memory\". Discover how CPython stores strings using PEP 393. Learn why adding a single emoji quadruples memory usage to preserve O(1) character indexing."
url: "https://hashnode.com/posts/python-string-memory-pep-393/6adde98936f2a6eace8fd993"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why a Single Emoji Quadruples Python String Memory](https://doogal.dev/python-string-memory-pep-393?utm_source=hashnode&utm_medium=feed)

Discover how CPython stores strings using PEP 393. Learn why adding a single emoji quadruples memory usage to preserve O(1) character indexing.

Oct 25 · 5 min read · doogal.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#softwareengineering](https://hashnode.com/tag/softwareengineering)
-   [#performance](https://hashnode.com/tag/performance)
-   [#computerscience](https://hashnode.com/tag/computerscience)

## Written by

[Doogal Simpson](https://hashnode.com/@doogal)

@doogal

  
[View profile](https://hashnode.com/@doogal)

"hey doogal, what is .... ?"

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
