Python `int`'s 28-Byte Object Overhead

Python's `int` is a full object, consuming approximately 28 bytes on 64-bit systems, which includes metadata like reference count (8 bytes), type pointer (8 bytes), and size fields, in addition to the actual integer value (4 bytes).

Sources

Open the full topic