# PyPy Configuration[objspace.std.withsmallint]

PyPy Configuration[objspace.std.withsmallint]
general documentation config index command-line overview

# objspace.std.withsmallint

Contents

- Basic Option Information
- Description

back to parent

# Basic Option Information

- name: withsmallint
- description: use tagged integers
- command-line: --objspace-std-withsmallint
- command-line for negation: --no-objspace-std-withsmallint
- option type: boolean option
- default: False
- requirements:
  - translation.gc must be set to 'boehm'

# Description

Use "tagged pointers" to represent small enough integer values: Integers that fit into 31 bits (respective 63 bits on 64 bit machines) are not represented by boxing them in an instance of `W_IntObject`. Instead they are represented as a pointer having the lowest bit set and the rest of the bits used to store the value of the integer. This gives a small speedup for integer operations as well as better memory behaviour.