PyPy
PyPy Configuration[translation.gc]

translation.gc

back to parent

Basic Option Information

  • name: gc
  • description: Garbage Collection Strategy
  • command-line: --gc
  • option type: choice option
  • possible values:
    • boehm
    • ref
    • framework
    • none
    • stacklessgc
    • exact_boehm
  • default: ref
  • requirements:

Description

Choose the Garbage Collector used by the translated program:

  • "ref": reference counting. Takes very long to translate and the result is slow.
  • "framework": our custom mark-and-sweep collector. Takes moderately long and is the fastest option without external dependencies.
  • "stacklessgc": same as "framework" but uses a different method to find the garbage collection roots on the stack, by unwinding it, using stackless: --stackless.
  • "boehm": use the Boehm conservative GC