⬅ Back to Table of Contents ⬅ Back to Table of Contents
Check out benchmark data Internals that affect performance and recommended hot-path strategies.
Topics:
VarDataunion layout and memory model- Which types are heap-allocated (string, list, dict, set, ordered variants, graph)
- Cost of copy vs move; move semantics examples
- Fast-path cache and
type_tag()usage - Guidelines: use
is_*()+as_*_unchecked()in hot loops; prefertype_cstr()overtype()in hot code
Notes on future improvements (smart pointers, variant refactor).