objspace.std.withprebuiltint

  • name: withprebuiltint
  • description: prebuild commonly used int objects
  • command-line: –objspace-std-withprebuiltint
  • command-line for negation: –no-objspace-std-withprebuiltint
  • option type: boolean option
  • default: False

This option enables the caching of small integer objects (similar to what CPython does). The range of which integers are cached can be influenced with the –prebuiltintfrom and –prebuiltintto options.