dynamic-forms / Variable

MAX_AST_CACHE_SIZE

Maximum size of the expression AST cache.

Expressions are parsed into Abstract Syntax Trees (AST) once and cached to avoid re-parsing on each evaluation. The cache uses LRU eviction.

1000 entries handles:

  • Large forms with many derivation expressions
  • Multiple form instances with different expressions
  • Memory efficiency (AST nodes are relatively small)

Presentation

const MAX_AST_CACHE_SIZE: 1000;