Repository navigation
Reduce retained memory in compiled filters - #211
Merged
Merged
Conversation
marmeladema
force-pushed
the
elie/reduce-compiled-filter-memory
branch
3 times, most recently
from
November 16, 2026 10:50
51a8e71 to
41a422f
Compare
utkarshgupta137
approved these changes
Nov 16, 2026
marmeladema
force-pushed
the
elie/reduce-compiled-filter-memory
branch
2 times, most recently
from
November 16, 2026 11:05
b7cbf77 to
ce3cd0a
Compare
Discard regex and wildcard source representations and byte literal formatting when compiling filters. Capture scalar function literals without enum tags, trim terminal wildcard paths, and store range endpoints without iterator state. Forward single-child logical combinations and retain binary children inline to avoid unnecessary closures and child-slice allocations. Preserve scalar short-circuiting, vector truncation, and existing compiler hooks.
marmeladema
force-pushed
the
elie/reduce-compiled-filter-memory
branch
from
November 16, 2026 11:07
ce3cd0a to
1e7e663
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compiled filters retain some AST representation details that are unnecessary during execution. Extract the memory reductions from #210 independently of its field-access changes and extend them to similar cases:
Preserve matching behavior, literal ownership, compiler hooks, scalar short-circuiting, and vector truncation.