Skip to content

Conversation

@YoEight
Copy link
Owner

@YoEight YoEight commented Feb 13, 2026

Introduce arena-based memory allocation with string interning

Summary

  • Replaces heap-allocated AST nodes with arena-based allocation, using lightweight reference handles (ExprRef, StrRef, VecRef, RecRef, TypeRef) for O(1) lookups and reduced memory overhead
  • Introduces StringArena for string interning, deduplicating repeated strings (e.g., field names, identifiers) across queries
  • Adds TypeArena with freeze/free semantics, allowing the session to reclaim memory between query analyses while preserving baseline type definitions.

@YoEight YoEight merged commit 3adad53 into master Feb 13, 2026
4 checks passed
@YoEight YoEight deleted the str-arena branch February 13, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant