Skip to content

Comments

feat: Use persistent_term to store patterns in memory#130

Merged
doomspork merged 5 commits intobeam-community:mainfrom
paradox460:persistent_term
Dec 9, 2025
Merged

feat: Use persistent_term to store patterns in memory#130
doomspork merged 5 commits intobeam-community:mainfrom
paradox460:persistent_term

Conversation

@paradox460
Copy link
Contributor

The fix introduced in #112 inadvertently caused a performance regression.

Previously, the pattern term was stored in memory, and so reading and parsing against it was fast. The change in #112 made it so every parse request would reload and compile the YAML.

This PR moves the storage into persistent_term, which has performant characteristics, while keeping the same API behavior as before

@paradox460 paradox460 requested a review from a team as a code owner December 6, 2025 01:26
@doomspork doomspork changed the title Use persistent_term to store patterns in memory feat: Use persistent_term to store patterns in memory Dec 6, 2025
@doomspork
Copy link
Member

This is great @paradox460! Could you take a peek at the failing Credo check?

@paradox460
Copy link
Contributor Author

paradox460 commented Dec 6, 2025

Should be corrected now. I've fixed some additional credo issues that were present in other files

@doomspork
Copy link
Member

Thank you @paradox460!

@doomspork doomspork merged commit c254b18 into beam-community:main Dec 9, 2025
9 checks passed
@paradox460 paradox460 deleted the persistent_term branch December 10, 2025 07:32
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.

2 participants