Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region-based allocation for AST nodes #122

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SIGMazer
Copy link
Contributor

@SIGMazer SIGMazer commented Feb 8, 2025

Description

As the AST grows more complex, managing it becomes increasingly difficult, and free_ast becomes larger. This PR introduces a single Region to allocate all AST nodes, allowing them to be freed at once, simplifying memory management and reducing overhead.

Related Issue

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Performance improvement
  • Refactor

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have documented my changes in the code or documentation
  • I have added tests that prove my changes work (if applicable)
  • I have run the unit tests locally
  • I have run the valgrind memory tests locally
  • All new and existing tests pass

@SIGMazer SIGMazer requested a review from araujo88 as a code owner February 8, 2025 16:28
@SIGMazer SIGMazer added enhancement New feature or request refactor Modify existing working code but keeping the same functionality. labels Feb 8, 2025
Signed-off-by: SIGMazer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Modify existing working code but keeping the same functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant